#CFC262#CFC262

#CFC262 is a light, moderate yellow. Relative luminance 0.527; OKLCH L 80.5% C 0.119 H 101.7°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#CFC262
RGBrgb(207, 194, 98)
HSLhsl(53, 53%, 60%)
HSVhsv(53, 53%, 81%)
CMYKcmyk(0%, 6.3%, 52.7%, 18.8%)
CIE-LABlab(77.72, -7.92, 49.34)
CIE-LCHlch(77.72, 49.98, 99.12°)
OKLaboklab(80.52% -0.024 0.1161)
OKLCHoklch(80.52% 0.119 101.7)
XYZxyz(47.2300, 52.7325, 19.2434)
Luminance0.5273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC262 #626FCF
analogous
#CF8C62 #CFC262 #A6CF62
triadic
#CFC262 #62CFC2 #C262CF
tetradic
#CFC262 #62CF8C #626FCF #CF62A6
square
#CFC262 #62CF8C #626FCF #CF62A6
split-complementary
#CFC262 #62A6CF #8C62CF
monochromatic
#8C802B #BBAB39 #CFC262 #DDD491 #ECE6C0

Accessibility & contrast

On white

1.82
#CFC262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.55
#CFC262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC262
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC262#FFFFFF#000000##000000
##CFC2621.001.8211.5511.55
#FFFFFF1.821.0021.0021.00
#00000011.5521.001.001.00
##00000011.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BD59
Deuteranopia (green-blind)
#D5C366
Tritanopia (blue-blind)
#DDB7AC
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cfc262;
/* rgb */ color: rgb(207, 194, 98);
/* oklch */ color: oklch(80.5% 0.119 101.7);
Tailwind
colors: {
  custom: {
    50: '#e0d491',
    500: '#cfc262',
    950: '#000000',
  },
}
SCSS
$custom: #cfc262;
$custom-light: #e0d491;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc262",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 98
  },
  "hsl": {
    "h": 52.844,
    "s": 53.171,
    "l": 59.804
  },
  "oklch": {
    "l": 0.80517,
    "c": 0.11859,
    "h": 101.7
  },
  "luminance": 0.52731
}

Semantic roles & 50–950 ramp

primary
#CFC262
secondary
#434C92
accent
#5DDD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CFC262

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

Preview Lab → · Contrast checker → · Palette generator →

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