#CFC178#CFC178

#CFC178 is a light, moderate yellow. Relative luminance 0.528; OKLCH L 80.6% C 0.095 H 98.7°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#CFC178
RGBrgb(207, 193, 120)
HSLhsl(50, 48%, 64%)
HSVhsv(50, 42%, 81%)
CMYKcmyk(0%, 6.8%, 42%, 18.8%)
CIE-LABlab(77.73, -5.32, 38.48)
CIE-LCHlch(77.73, 38.84, 97.88°)
OKLaboklab(80.62% -0.0143 0.0936)
OKLCHoklch(80.62% 0.095 98.7)
XYZxyz(48.1933, 52.7629, 25.4113)
Luminance0.5276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC178 #7886CF
analogous
#CF9678 #CFC178 #B2CF78
triadic
#CFC178 #78CFC1 #C178CF
tetradic
#CFC178 #78CF96 #7886CF #CF78B2
square
#CFC178 #78CF96 #7886CF #CF78B2
split-complementary
#CFC178 #78B2CF #9678CF
monochromatic
#978736 #BFAC4B #CFC178 #DFD6A5 #EFEAD2

Accessibility & contrast

On white

1.82
#CFC178 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.55
#CFC178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC178
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC178#FFFFFF#000000##000000
##CFC1781.001.8211.5511.55
#FFFFFF1.821.0021.0021.00
#00000011.5521.001.001.00
##00000011.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEBD72
Deuteranopia (green-blind)
#D2C27B
Tritanopia (blue-blind)
#DBB7AF
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cfc178;
/* rgb */ color: rgb(207, 193, 120);
/* oklch */ color: oklch(80.6% 0.095 98.7);
Tailwind
colors: {
  custom: {
    50: '#dfd3a0',
    500: '#cfc178',
    950: '#000000',
  },
}
SCSS
$custom: #cfc178;
$custom-light: #dfd3a0;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc178",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 120
  },
  "hsl": {
    "h": 50.345,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.80623,
    "c": 0.09472,
    "h": 98.7
  },
  "luminance": 0.52761
}

Semantic roles & 50–950 ramp

primary
#CFC178
secondary
#4E5B9D
accent
#42BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CFC178

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CFC178 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva