#CFC139#CFC139

#CFC139 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.9% C 0.150 H 103.3°. Best body text is #000000 at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#CFC139
RGBrgb(207, 193, 57)
HSLhsl(54, 61%, 52%)
HSVhsv(54, 72%, 81%)
CMYKcmyk(0%, 6.8%, 72.5%, 18.8%)
CIE-LABlab(77.10, -10.05, 66.12)
CIE-LCHlch(77.10, 66.88, 98.64°)
OKLaboklab(79.92% -0.0345 0.146)
OKLCHoklch(79.92% 0.15 103.3)
XYZxyz(45.5426, 51.7026, 11.4508)
Luminance0.5170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC139 #3947CF
analogous
#CF7639 #CFC139 #92CF39
triadic
#CFC139 #39CFC1 #C139CF
tetradic
#CFC139 #39CF76 #3947CF #CF3992
square
#CFC139 #39CF76 #3947CF #CF3992
split-complementary
#CFC139 #3992CF #7639CF
monochromatic
#726A1C #A39828 #CFC139 #DBD06A #E7E09C

Accessibility & contrast

On white

1.85
#CFC139 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.34
#CFC139 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC139
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC139#FFFFFF#000000##000000
##CFC1391.001.8511.3411.34
#FFFFFF1.851.0021.0021.00
#00000011.3421.001.001.00
##00000011.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB21
Deuteranopia (green-blind)
#D7C142
Tritanopia (blue-blind)
#DFB3A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cfc139;
/* rgb */ color: rgb(207, 193, 57);
/* oklch */ color: oklch(79.9% 0.150 103.3);
Tailwind
colors: {
  custom: {
    50: '#e1d379',
    500: '#cfc139',
    950: '#000000',
  },
}
SCSS
$custom: #cfc139;
$custom-light: #e1d379;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc139",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 57
  },
  "hsl": {
    "h": 54.4,
    "s": 60.976,
    "l": 51.765
  },
  "oklch": {
    "l": 0.79917,
    "c": 0.15006,
    "h": 103.3
  },
  "luminance": 0.51701
}

Semantic roles & 50–950 ramp

primary
#CFC139
secondary
#31387B
accent
#53E444
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC139

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

Preview Lab → · Contrast checker → · Palette generator →

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