#CFC140#CFC140

#CFC140 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.146 H 103.0°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#CFC140
RGBrgb(207, 193, 64)
HSLhsl(54, 60%, 53%)
HSVhsv(54, 69%, 81%)
CMYKcmyk(0%, 6.8%, 69.1%, 18.8%)
CIE-LABlab(77.15, -9.71, 63.57)
CIE-LCHlch(77.15, 64.30, 98.68°)
OKLaboklab(79.97% -0.0329 0.1419)
OKLCHoklch(79.97% 0.146 103)
XYZxyz(45.7294, 51.7774, 12.4347)
Luminance0.5178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC140 #404ECF
analogous
#CF7940 #CFC140 #95CF40
triadic
#CFC140 #40CFC1 #C140CF
tetradic
#CFC140 #40CF79 #404ECF #CF4095
square
#CFC140 #40CF79 #404ECF #CF4095
split-complementary
#CFC140 #4095CF #7940CF
monochromatic
#776E1E #A89B2A #CFC140 #DBD171 #E8E1A2

Accessibility & contrast

On white

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

On black

11.36
#CFC140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC140
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC140#FFFFFF#000000##000000
##CFC1401.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB2D
Deuteranopia (green-blind)
#D7C148
Tritanopia (blue-blind)
#DEB4A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cfc140;
/* rgb */ color: rgb(207, 193, 64);
/* oklch */ color: oklch(80.0% 0.146 103.0);
Tailwind
colors: {
  custom: {
    50: '#e1d37c',
    500: '#cfc140',
    950: '#000000',
  },
}
SCSS
$custom: #cfc140;
$custom-light: #e1d37c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc140",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 64
  },
  "hsl": {
    "h": 54.126,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.79967,
    "c": 0.14563,
    "h": 103
  },
  "luminance": 0.51775
}

Semantic roles & 50–950 ramp

primary
#CFC140
secondary
#343B7F
accent
#54E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC140

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

Preview Lab → · Contrast checker → · Palette generator →

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