Skip to content

CSS named color

LightPink #FFB6C1

LightPink (CSS keyword lightpink) has the hex code #FFB6C1 and the RGB value rgb(255, 182, 193): a very light, muted pink.

LightPink#FFB6C1

The CSS Color 4 specification calls this out as a naming inconsistency: lightpink (#ffb6c1) is darker than pink (#ffc0cb).

Color codes for LightPink

Color codes for LightPink
CSS keywordlightpink
HEX#FFB6C1
RGBrgb(255, 182, 193)
HSLhsl(351, 100%, 86%)
HWBhwb(351 71% 0%)
OKLCHoklch(84.7% 0.086 9.1)
CMYK (naive, no ICC profile)cmyk(0%, 29%, 24%, 0%)
Decimal16,758,465
Hue familyPinks

Contrast and accessibility

On lightpink, black text has a contrast ratio of 12.71:1 and passes AAA at any text size; white text reaches 1.65:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on lightpink12.71:1PassPassPassPass75.1
White text on lightpink1.65:1FailFailFailFail−32.4
Lightpink text on white1.65:1FailFailFailFail28.7
Lightpink text on black12.71:1PassPassPassPass−74.2

Tints and shades

Each step mixes lightpink with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, lightpink, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #ffbac4
  2. 15%
    #ffc1ca
  3. 25%
    #ffc8d1
  4. 35%
    #ffd0d7
  5. 45%
    #ffd7dd
  6. 55%
    #ffdee3
  7. 65%
    #ffe5e9
  8. 75%
    #ffedf0
  9. 85%
    #fff4f6
  10. 95%
    #fffbfc

Shades (mixed with black)

  1. 5%
    #f2adb7
  2. 15%
    #d99ba4
  3. 25%
    #bf8991
  4. 35%
    #a6767d
  5. 45%
    #8c646a
  6. 55%
    #735257
  7. 65%
    #594044
  8. 75%
    #402e30
  9. 85%
    #261b1d
  10. 95%
    #0d090a

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, lightpink's complementary color is #87DFD8 (close to powderblue), its analogous colors are #F3B8E0 and #FFBAA4, and its triadic partners are #BBD89D and #A1D2FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#87dfd8
Analogous−30°, +30°#f3b8e0#ffbaa4
Triadic+120°, +240°#bbd89d#a1d2ff
Split-complementary+150°, +210°#9cdfb9#8adbf3

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

LightPink is a warm color: its hue is 351° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
pink#ffc0cb2.4
thistle#d8bfd86.3
lightgray#d3d3d38.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
red-200#ffc9c94.6
rose-300#ffa1ad4.9
red-300#ffa2a25.2

Code snippets

CSS
.element {
  color: lightpink;
  background-color: #ffb6c1;
  border-color: rgb(255 182 193);
  outline-color: oklch(84.7% 0.086 9.1);
}
Tailwind CSS
<div class="bg-[#ffb6c1] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-lightpink: #ffb6c1;
}
/* then use bg-lightpink, text-lightpink, border-lightpink */
SwiftUI
import SwiftUI

extension Color {
  static let lightpink = Color(red: 1.000, green: 0.714, blue: 0.757)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Lightpink = Color(0xFFFFB6C1)
Flutter
import 'package:flutter/material.dart';

const lightpink = Color(0xFFFFB6C1);
Android XML
<!-- res/values/colors.xml -->
<color name="lightpink">#FFB6C1</color>

Frequently asked questions

What is the hex code for lightpink?
The hex code for lightpink is #FFB6C1. The same color is rgb(255, 182, 193), hsl(351, 100%, 86%) and oklch(84.7% 0.086 9.1), and in CSS you can also write the keyword lightpink directly.
Is lightpink a warm or cool color?
LightPink is a warm color: its hue is 351° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
What colors go with lightpink?
Rotating the hue in OKLCH while keeping lightness and chroma, lightpink's complementary color is #87DFD8 (close to powderblue), its analogous colors are #F3B8E0 and #FFBAA4, and its triadic partners are #BBD89D and #A1D2FF. For text on top, black gives the higher contrast.
Can you use white text on lightpink?
White text on lightpink has a contrast ratio of 1.65:1, which fails AA even for large text under WCAG 2.2. Black text reaches 12.71:1 and passes both AA and AAA. In APCA terms that is Lc −32.4 for white and Lc 75.1 for black.
What is the RGB value of lightpink?
LightPink is rgb(255, 182, 193): red 255, green 182 and blue 193 on the 0 to 255 scale, or 100.0%, 71.4% and 75.7%. As a decimal integer it is 16758465.

Last reviewed by Arielton Oberek.