#CFC757#CFC757

#CFC757 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.4% C 0.134 H 105.2°. Best body text is #000000 at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#CFC757
RGBrgb(207, 199, 87)
HSLhsl(56, 56%, 58%)
HSVhsv(56, 58%, 81%)
CMYKcmyk(0%, 3.9%, 58%, 18.8%)
CIE-LABlab(78.93, -11.34, 55.82)
CIE-LCHlch(78.93, 56.96, 101.48°)
OKLaboklab(81.44% -0.035 0.1289)
OKLCHoklch(81.44% 0.134 105.2)
XYZxyz(47.8774, 54.8019, 17.0708)
Luminance0.5480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC757 #575FCF
analogous
#CF8B57 #CFC757 #9BCF57
triadic
#CFC757 #57CFC7 #C757CF
tetradic
#CFC757 #57CF8B #575FCF #CF579B
square
#CFC757 #57CF8B #575FCF #CF579B
split-complementary
#CFC757 #579BCF #8B57CF
monochromatic
#857F26 #B5AC34 #CFC757 #DDD787 #EAE7B6

Accessibility & contrast

On white

1.76
#CFC757 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.96
#CFC757 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC757
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC757#FFFFFF#000000##000000
##CFC7571.001.7611.9611.96
#FFFFFF1.761.0021.0021.00
#00000011.9621.001.001.00
##00000011.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C04B
Deuteranopia (green-blind)
#DAC65D
Tritanopia (blue-blind)
#DDBBAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cfc757;
/* rgb */ color: rgb(207, 199, 87);
/* oklch */ color: oklch(81.4% 0.134 105.2);
Tailwind
colors: {
  custom: {
    50: '#e0d78a',
    500: '#cfc757',
    950: '#000000',
  },
}
SCSS
$custom: #cfc757;
$custom-light: #e0d78a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc757",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 87
  },
  "hsl": {
    "h": 56,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81442,
    "c": 0.13354,
    "h": 105.2
  },
  "luminance": 0.548
}

Semantic roles & 50–950 ramp

primary
#CFC757
secondary
#3E438C
accent
#53DF49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC757

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

Preview Lab → · Contrast checker → · Palette generator →

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