#CFCF34#CFCF34

#CFCF34 is a very light, vivid yellow. Relative luminance 0.581; OKLCH L 82.9% C 0.166 H 109.5°. Best body text is #000000 at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#CFCF34
RGBrgb(207, 207, 52)
HSLhsl(60, 62%, 51%)
HSVhsv(60, 75%, 81%)
CMYKcmyk(0%, 0%, 74.9%, 18.8%)
CIE-LABlab(80.82, -17.31, 71.29)
CIE-LCHlch(80.82, 73.36, 103.65°)
OKLaboklab(82.87% -0.0554 0.1561)
OKLCHoklch(82.87% 0.166 109.5)
XYZxyz(48.6666, 58.1405, 11.9068)
Luminance0.5814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCF34 #3434CF
analogous
#CF8134 #CFCF34 #81CF34
triadic
#CFCF34 #34CFCF #CF34CF
tetradic
#CFCF34 #34CF81 #3434CF #CF3481
square
#CFCF34 #34CF81 #3434CF #CF3481
split-complementary
#CFCF34 #3481CF #8134CF
monochromatic
#6E6E1A #A0A026 #CFCF34 #DBDB65 #E6E697

Accessibility & contrast

On white

1.66
#CFCF34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.63
#CFCF34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCF34
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCF34#FFFFFF#000000##000000
##CFCF341.001.6612.6312.63
#FFFFFF1.661.0021.0021.00
#00000012.6321.001.001.00
##00000012.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C60C
Deuteranopia (green-blind)
#E2CB41
Tritanopia (blue-blind)
#DEC2B2
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cfcf34;
/* rgb */ color: rgb(207, 207, 52);
/* oklch */ color: oklch(82.9% 0.166 109.5);
Tailwind
colors: {
  custom: {
    50: '#e2dd78',
    500: '#cfcf34',
    950: '#000000',
  },
}
SCSS
$custom: #cfcf34;
$custom-light: #e2dd78;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcf34",
  "rgb": {
    "r": 207,
    "g": 207,
    "b": 52
  },
  "hsl": {
    "h": 60,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.82869,
    "c": 0.16562,
    "h": 109.5
  },
  "luminance": 0.58139
}

Semantic roles & 50–950 ramp

primary
#CFCF34
secondary
#2F2F78
accent
#43E543
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CFCF34

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

Preview Lab → · Contrast checker → · Palette generator →

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