#CFAB3B#CFAB3B

#CFAB3B is a light, vivid yellow. Relative luminance 0.427; OKLCH L 75.4% C 0.133 H 90.6°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#CFAB3B
RGBrgb(207, 171, 59)
HSLhsl(45, 61%, 52%)
HSVhsv(45, 71%, 81%)
CMYKcmyk(0%, 17.4%, 71.5%, 18.8%)
CIE-LABlab(71.36, 1.52, 59.73)
CIE-LCHlch(71.36, 59.75, 88.55°)
OKLaboklab(75.37% -0.0014 0.1329)
OKLCHoklch(75.37% 0.133 90.6)
XYZxyz(41.0867, 42.7095, 10.2165)
Luminance0.4271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAB3B #3B5FCF
analogous
#CF613B #CFAB3B #A9CF3B
triadic
#CFAB3B #3BCFAB #AB3BCF
tetradic
#CFAB3B #3BCF61 #3B5FCF #CF3BA9
square
#CFAB3B #3BCF61 #3B5FCF #CF3BA9
split-complementary
#CFAB3B #3BA9CF #613BCF
monochromatic
#735E1C #A58628 #CFAB3B #DBC06C #E7D59D

Accessibility & contrast

On white

2.20
#CFAB3B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#CFAB3B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAB3B
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAB3B#FFFFFF#000000##000000
##CFAB3B1.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA92B
Deuteranopia (green-blind)
#C7B341
Tritanopia (blue-blind)
#E09D94
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cfab3b;
/* rgb */ color: rgb(207, 171, 59);
/* oklch */ color: oklch(75.4% 0.133 90.6);
Tailwind
colors: {
  custom: {
    50: '#e2c378',
    500: '#cfab3b',
    950: '#000000',
  },
}
SCSS
$custom: #cfab3b;
$custom-light: #e2c378;
$custom-dark: #000000;
JSON
{
  "hex": "#cfab3b",
  "rgb": {
    "r": 207,
    "g": 171,
    "b": 59
  },
  "hsl": {
    "h": 45.405,
    "s": 60.656,
    "l": 52.157
  },
  "oklch": {
    "l": 0.75371,
    "c": 0.13288,
    "h": 90.6
  },
  "luminance": 0.42707
}

Semantic roles & 50–950 ramp

primary
#CFAB3B
secondary
#93A2D3
accent
#6BE444
background
#FEFBF7
surface
#FDF7EE
border
#D5D0C9
text
#161209
muted
#84817B

Preview Lab

Preview with #CFAB3B

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

Preview Lab → · Contrast checker → · Palette generator →

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