#CFC257#CFC257

#CFC257 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 80.4% C 0.129 H 102.4°. Best body text is #000000 at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#CFC257
RGBrgb(207, 194, 87)
HSLhsl(54, 56%, 58%)
HSVhsv(54, 58%, 81%)
CMYKcmyk(0%, 6.3%, 58%, 18.8%)
CIE-LABlab(77.60, -8.78, 54.34)
CIE-LCHlch(77.60, 55.04, 99.18°)
OKLaboklab(80.39% -0.0277 0.1257)
OKLCHoklch(80.39% 0.129 102.4)
XYZxyz(46.7458, 52.5388, 16.6936)
Luminance0.5254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC257 #5764CF
analogous
#CF8657 #CFC257 #A0CF57
triadic
#CFC257 #57CFC2 #C257CF
tetradic
#CFC257 #57CF86 #5764CF #CF57A0
square
#CFC257 #57CF86 #5764CF #CF57A0
split-complementary
#CFC257 #57A0CF #8657CF
monochromatic
#857B26 #B5A734 #CFC257 #DDD387 #EAE5B6

Accessibility & contrast

On white

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

On black

11.51
#CFC257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC257
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC257#FFFFFF#000000##000000
##CFC2571.001.8211.5111.51
#FFFFFF1.821.0021.0021.00
#00000011.5121.001.001.00
##00000011.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC4C
Deuteranopia (green-blind)
#D6C25C
Tritanopia (blue-blind)
#DDB6AB
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cfc257;
/* rgb */ color: rgb(207, 194, 87);
/* oklch */ color: oklch(80.4% 0.129 102.4);
Tailwind
colors: {
  custom: {
    50: '#e0d48a',
    500: '#cfc257',
    950: '#000000',
  },
}
SCSS
$custom: #cfc257;
$custom-light: #e0d48a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc257",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 87
  },
  "hsl": {
    "h": 53.5,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80389,
    "c": 0.12872,
    "h": 102.4
  },
  "luminance": 0.52537
}

Semantic roles & 50–950 ramp

primary
#CFC257
secondary
#3E468C
accent
#59DF49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC257

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

Preview Lab → · Contrast checker → · Palette generator →

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