#CFCF38#CFCF38

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

Color values

HEX#CFCF38
RGBrgb(207, 207, 56)
HSLhsl(60, 61%, 52%)
HSVhsv(60, 73%, 81%)
CMYKcmyk(0%, 0%, 72.9%, 18.8%)
CIE-LABlab(80.84, -17.14, 70.01)
CIE-LCHlch(80.84, 72.08, 103.76°)
OKLaboklab(82.89% -0.0545 0.1541)
OKLCHoklch(82.89% 0.163 109.5)
XYZxyz(48.7605, 58.1780, 12.4016)
Luminance0.5818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCF38 #3838CF
analogous
#CF8438 #CFCF38 #84CF38
triadic
#CFCF38 #38CFCF #CF38CF
tetradic
#CFCF38 #38CF84 #3838CF #CF3884
square
#CFCF38 #38CF84 #3838CF #CF3884
split-complementary
#CFCF38 #3884CF #8438CF
monochromatic
#71711B #A3A327 #CFCF38 #DBDB69 #E7E79B

Accessibility & contrast

On white

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

On black

12.64
#CFCF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCF38
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCF38#FFFFFF#000000##000000
##CFCF381.001.6612.6412.64
#FFFFFF1.661.0021.0021.00
#00000012.6421.001.001.00
##00000012.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfcf38;
/* rgb */ color: rgb(207, 207, 56);
/* oklch */ color: oklch(82.9% 0.163 109.5);
Tailwind
colors: {
  custom: {
    50: '#e1dd7a',
    500: '#cfcf38',
    950: '#000000',
  },
}
SCSS
$custom: #cfcf38;
$custom-light: #e1dd7a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcf38",
  "rgb": {
    "r": 207,
    "g": 207,
    "b": 56
  },
  "hsl": {
    "h": 60,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.82893,
    "c": 0.16347,
    "h": 109.5
  },
  "luminance": 0.58177
}

Semantic roles & 50–950 ramp

primary
#CFCF38
secondary
#31317A
accent
#44E444
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CFCF38

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

Preview Lab → · Contrast checker → · Palette generator →

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