#CFC157#CFC157

#CFC157 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.2% C 0.128 H 101.8°. Best body text is #000000 at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#CFC157
RGBrgb(207, 193, 87)
HSLhsl(53, 56%, 58%)
HSVhsv(53, 58%, 81%)
CMYKcmyk(0%, 6.8%, 58%, 18.8%)
CIE-LABlab(77.34, -8.27, 54.04)
CIE-LCHlch(77.34, 54.67, 98.70°)
OKLaboklab(80.18% -0.0262 0.1251)
OKLCHoklch(80.18% 0.128 101.8)
XYZxyz(46.5240, 52.0952, 16.6197)
Luminance0.5209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC157 #5765CF
analogous
#CF8557 #CFC157 #A1CF57
triadic
#CFC157 #57CFC1 #C157CF
tetradic
#CFC157 #57CF85 #5765CF #CF57A1
square
#CFC157 #57CF85 #5765CF #CF57A1
split-complementary
#CFC157 #57A1CF #8557CF
monochromatic
#857A26 #B5A634 #CFC157 #DDD387 #EAE4B6

Accessibility & contrast

On white

1.84
#CFC157 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.42
#CFC157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC157
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC157#FFFFFF#000000##000000
##CFC1571.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BC4C
Deuteranopia (green-blind)
#D5C25C
Tritanopia (blue-blind)
#DDB5AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cfc157;
/* rgb */ color: rgb(207, 193, 87);
/* oklch */ color: oklch(80.2% 0.128 101.8);
Tailwind
colors: {
  custom: {
    50: '#e0d38a',
    500: '#cfc157',
    950: '#000000',
  },
}
SCSS
$custom: #cfc157;
$custom-light: #e0d38a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc157",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 87
  },
  "hsl": {
    "h": 53,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80179,
    "c": 0.12779,
    "h": 101.8
  },
  "luminance": 0.52093
}

Semantic roles & 50–950 ramp

primary
#CFC157
secondary
#3E478C
accent
#5ADF49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC157

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

Preview Lab → · Contrast checker → · Palette generator →

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