#CFC12D#CFC12D

#CFC12D is a light, vivid yellow. Relative luminance 0.516; OKLCH L 79.8% C 0.157 H 103.7°. Best body text is #000000 at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#CFC12D
RGBrgb(207, 193, 45)
HSLhsl(55, 64%, 49%)
HSVhsv(55, 78%, 81%)
CMYKcmyk(0%, 6.8%, 78.3%, 18.8%)
CIE-LABlab(77.04, -10.53, 70.01)
CIE-LCHlch(77.04, 70.80, 98.56°)
OKLaboklab(79.85% -0.037 0.1521)
OKLCHoklch(79.85% 0.157 103.7)
XYZxyz(45.2778, 51.5967, 10.0563)
Luminance0.5160 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC12D #2D3BCF
analogous
#CF702D #CFC12D #8CCF2D
triadic
#CFC12D #2DCFC1 #C12DCF
tetradic
#CFC12D #2DCF70 #2D3BCF #CF2D8C
square
#CFC12D #2DCF70 #2D3BCF #CF2D8C
split-complementary
#CFC12D #2D8CCF #702DCF
monochromatic
#6A6317 #9D9222 #CFC12D #DCD15D #E7DF90

Accessibility & contrast

On white

1.86
#CFC12D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.32
#CFC12D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC12D
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC12D#FFFFFF#000000##000000
##CFC12D1.001.8611.3211.32
#FFFFFF1.861.0021.0021.00
#00000011.3221.001.001.00
##00000011.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BA00
Deuteranopia (green-blind)
#D7C139
Tritanopia (blue-blind)
#DFB3A6
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cfc12d;
/* rgb */ color: rgb(207, 193, 45);
/* oklch */ color: oklch(79.8% 0.157 103.7);
Tailwind
colors: {
  custom: {
    50: '#e2d373',
    500: '#cfc12d',
    950: '#000000',
  },
}
SCSS
$custom: #cfc12d;
$custom-light: #e2d373;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc12d",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 45
  },
  "hsl": {
    "h": 54.815,
    "s": 64.286,
    "l": 49.412
  },
  "oklch": {
    "l": 0.79847,
    "c": 0.15651,
    "h": 103.7
  },
  "luminance": 0.51595
}

Semantic roles & 50–950 ramp

primary
#CFC12D
secondary
#2C3274
accent
#4FE741
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CFC12D

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

Preview Lab → · Contrast checker → · Palette generator →

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