#CFC740#CFC740

#CFC740 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.2% C 0.151 H 105.9°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#CFC740
RGBrgb(207, 199, 64)
HSLhsl(57, 60%, 53%)
HSVhsv(57, 69%, 81%)
CMYKcmyk(0%, 3.9%, 69.1%, 18.8%)
CIE-LABlab(78.74, -12.76, 65.16)
CIE-LCHlch(78.74, 66.39, 101.08°)
OKLaboklab(81.24% -0.0415 0.1452)
OKLCHoklch(81.24% 0.151 105.9)
XYZxyz(47.0828, 54.4841, 12.8859)
Luminance0.5448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC740 #4048CF
analogous
#CF7F40 #CFC740 #90CF40
triadic
#CFC740 #40CFC7 #C740CF
tetradic
#CFC740 #40CF7F #4048CF #CF4090
square
#CFC740 #40CF7F #4048CF #CF4090
split-complementary
#CFC740 #4090CF #7F40CF
monochromatic
#77721E #A8A12A #CFC740 #DBD571 #E8E4A2

Accessibility & contrast

On white

1.77
#CFC740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.90
#CFC740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC740
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC740#FFFFFF#000000##000000
##CFC7401.001.7711.9011.90
#FFFFFF1.771.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02B
Deuteranopia (green-blind)
#DBC549
Tritanopia (blue-blind)
#DEBAAC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cfc740;
/* rgb */ color: rgb(207, 199, 64);
/* oklch */ color: oklch(81.2% 0.151 105.9);
Tailwind
colors: {
  custom: {
    50: '#e1d77d',
    500: '#cfc740',
    950: '#000000',
  },
}
SCSS
$custom: #cfc740;
$custom-light: #e1d77d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc740",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 64
  },
  "hsl": {
    "h": 56.643,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.81237,
    "c": 0.15104,
    "h": 105.9
  },
  "luminance": 0.54482
}

Semantic roles & 50–950 ramp

primary
#CFC740
secondary
#34387F
accent
#4EE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC740

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

Preview Lab → · Contrast checker → · Palette generator →

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