#CFCA57#CFCA57

#CFCA57 is a very light, vivid yellow. Relative luminance 0.562; OKLCH L 82.1% C 0.137 H 106.7°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#CFCA57
RGBrgb(207, 202, 87)
HSLhsl(58, 56%, 58%)
HSVhsv(58, 58%, 81%)
CMYKcmyk(0%, 2.4%, 58%, 18.8%)
CIE-LABlab(79.73, -12.85, 56.71)
CIE-LCHlch(79.73, 58.15, 102.77°)
OKLaboklab(82.08% -0.0393 0.1308)
OKLCHoklch(82.08% 0.137 106.7)
XYZxyz(48.5745, 56.1961, 17.3032)
Luminance0.5619 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCA57 #575CCF
analogous
#CF8E57 #CFCA57 #98CF57
triadic
#CFCA57 #57CFCA #CA57CF
tetradic
#CFCA57 #57CF8E #575CCF #CF5798
square
#CFCA57 #57CF8E #575CCF #CF5798
split-complementary
#CFCA57 #5798CF #8E57CF
monochromatic
#858126 #B5B034 #CFCA57 #DDD987 #EAE8B6

Accessibility & contrast

On white

1.72
#CFCA57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.24
#CFCA57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCA57
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCA57#FFFFFF#000000##000000
##CFCA571.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C34B
Deuteranopia (green-blind)
#DCC85D
Tritanopia (blue-blind)
#DDBEB1
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cfca57;
/* rgb */ color: rgb(207, 202, 87);
/* oklch */ color: oklch(82.1% 0.137 106.7);
Tailwind
colors: {
  custom: {
    50: '#e0d98b',
    500: '#cfca57',
    950: '#000000',
  },
}
SCSS
$custom: #cfca57;
$custom-light: #e0d98b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfca57",
  "rgb": {
    "r": 207,
    "g": 202,
    "b": 87
  },
  "hsl": {
    "h": 57.5,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.82078,
    "c": 0.13655,
    "h": 106.7
  },
  "luminance": 0.56195
}

Semantic roles & 50–950 ramp

primary
#CFCA57
secondary
#3E418C
accent
#4FDF49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFCA57

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

Preview Lab → · Contrast checker → · Palette generator →

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