#CFC240#CFC240

#CFC240 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.2% C 0.147 H 103.5°. Best body text is #000000 at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#CFC240
RGBrgb(207, 194, 64)
HSLhsl(55, 60%, 53%)
HSVhsv(55, 69%, 81%)
CMYKcmyk(0%, 6.3%, 69.1%, 18.8%)
CIE-LABlab(77.41, -10.22, 63.83)
CIE-LCHlch(77.41, 64.64, 99.09°)
OKLaboklab(80.18% -0.0343 0.1424)
OKLCHoklch(80.18% 0.147 103.5)
XYZxyz(45.9512, 52.2210, 12.5087)
Luminance0.5222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC240 #404DCF
analogous
#CF7A40 #CFC240 #95CF40
triadic
#CFC240 #40CFC2 #C240CF
tetradic
#CFC240 #40CF7A #404DCF #CF4095
square
#CFC240 #40CF7A #404DCF #CF4095
split-complementary
#CFC240 #4095CF #7A40CF
monochromatic
#776F1E #A89C2A #CFC240 #DBD271 #E8E1A2

Accessibility & contrast

On white

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

On black

11.44
#CFC240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC240
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC240#FFFFFF#000000##000000
##CFC2401.001.8411.4411.44
#FFFFFF1.841.0021.0021.00
#00000011.4421.001.001.00
##00000011.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC2C
Deuteranopia (green-blind)
#D7C248
Tritanopia (blue-blind)
#DEB5A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cfc240;
/* rgb */ color: rgb(207, 194, 64);
/* oklch */ color: oklch(80.2% 0.147 103.5);
Tailwind
colors: {
  custom: {
    50: '#e1d47c',
    500: '#cfc240',
    950: '#000000',
  },
}
SCSS
$custom: #cfc240;
$custom-light: #e1d47c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc240",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 54.545,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.80178,
    "c": 0.14651,
    "h": 103.5
  },
  "luminance": 0.52219
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFC240

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

Preview Lab → · Contrast checker → · Palette generator →

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