#CFCA78#CFCA78

#CFCA78 is a very light, moderate yellow. Relative luminance 0.569; OKLCH L 82.5% C 0.104 H 105.4°. Best body text is #000000 at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#CFCA78
RGBrgb(207, 202, 120)
HSLhsl(57, 48%, 64%)
HSVhsv(57, 42%, 81%)
CMYKcmyk(0%, 2.4%, 42%, 18.8%)
CIE-LABlab(80.10, -9.95, 41.46)
CIE-LCHlch(80.10, 42.64, 103.50°)
OKLaboklab(82.5% -0.0277 0.1004)
OKLCHoklch(82.5% 0.104 105.4)
XYZxyz(50.2438, 56.8638, 26.0947)
Luminance0.5686 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCA78 #787DCF
analogous
#CF9F78 #CFCA78 #A9CF78
triadic
#CFCA78 #78CFCA #CA78CF
tetradic
#CFCA78 #78CF9F #787DCF #CF78A9
square
#CFCA78 #78CF9F #787DCF #CF78A9
split-complementary
#CFCA78 #78A9CF #9F78CF
monochromatic
#979136 #BFB84B #CFCA78 #DFDCA5 #EFEDD2

Accessibility & contrast

On white

1.70
#CFCA78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.37
#CFCA78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCA78
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCA78#FFFFFF#000000##000000
##CFCA781.001.7012.3712.37
#FFFFFF1.701.0021.0021.00
#00000012.3721.001.001.00
##00000012.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C472
Deuteranopia (green-blind)
#D9C97C
Tritanopia (blue-blind)
#DAC0B6
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cfca78;
/* rgb */ color: rgb(207, 202, 120);
/* oklch */ color: oklch(82.5% 0.104 105.4);
Tailwind
colors: {
  custom: {
    50: '#dfdaa0',
    500: '#cfca78',
    950: '#000000',
  },
}
SCSS
$custom: #cfca78;
$custom-light: #dfdaa0;
$custom-dark: #000000;
JSON
{
  "hex": "#cfca78",
  "rgb": {
    "r": 207,
    "g": 202,
    "b": 120
  },
  "hsl": {
    "h": 56.552,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.825,
    "c": 0.10414,
    "h": 105.4
  },
  "luminance": 0.56863
}

Semantic roles & 50–950 ramp

primary
#CFCA78
secondary
#4E539D
accent
#33BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CFCA78

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

Preview Lab → · Contrast checker → · Palette generator →

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