#CFAB3A#CFAB3A

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

Color values

HEX#CFAB3A
RGBrgb(207, 171, 58)
HSLhsl(46, 61%, 52%)
HSVhsv(46, 72%, 81%)
CMYKcmyk(0%, 17.4%, 72%, 18.8%)
CIE-LABlab(71.35, 1.47, 60.13)
CIE-LCHlch(71.35, 60.14, 88.60°)
OKLaboklab(75.36% -0.0017 0.1335)
OKLCHoklch(75.36% 0.134 90.7)
XYZxyz(41.0610, 42.6992, 10.0812)
Luminance0.4270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAB3A #3A5ECF
analogous
#CF613A #CFAB3A #A9CF3A
triadic
#CFAB3A #3ACFAB #AB3ACF
tetradic
#CFAB3A #3ACF61 #3A5ECF #CF3AA9
square
#CFAB3A #3ACF61 #3A5ECF #CF3AA9
split-complementary
#CFAB3A #3AA9CF #613ACF
monochromatic
#735E1C #A48628 #CFAB3A #DBC06B #E7D59C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFAB3A#FFFFFF#000000##000000
##CFAB3A1.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)
#BEA929
Deuteranopia (green-blind)
#C7B340
Tritanopia (blue-blind)
#E09D94
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cfab3a;
/* rgb */ color: rgb(207, 171, 58);
/* oklch */ color: oklch(75.4% 0.134 90.7);
Tailwind
colors: {
  custom: {
    50: '#e2c377',
    500: '#cfab3a',
    950: '#000000',
  },
}
SCSS
$custom: #cfab3a;
$custom-light: #e2c377;
$custom-dark: #000000;
JSON
{
  "hex": "#cfab3a",
  "rgb": {
    "r": 207,
    "g": 171,
    "b": 58
  },
  "hsl": {
    "h": 45.503,
    "s": 60.816,
    "l": 51.961
  },
  "oklch": {
    "l": 0.75363,
    "c": 0.13353,
    "h": 90.7
  },
  "luminance": 0.42697
}

Semantic roles & 50–950 ramp

primary
#CFAB3A
secondary
#92A2D3
accent
#6BE444
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CFAB3A

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

Preview Lab → · Contrast checker → · Palette generator →

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