#CFAB3C#CFAB3C

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

Color values

HEX#CFAB3C
RGBrgb(207, 171, 60)
HSLhsl(45, 60%, 52%)
HSVhsv(45, 71%, 81%)
CMYKcmyk(0%, 17.4%, 71%, 18.8%)
CIE-LABlab(71.36, 1.57, 59.34)
CIE-LCHlch(71.36, 59.36, 88.49°)
OKLaboklab(75.38% -0.0012 0.1322)
OKLCHoklch(75.38% 0.132 90.5)
XYZxyz(41.1129, 42.7200, 10.3544)
Luminance0.4272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAB3C #3C60CF
analogous
#CF613C #CFAB3C #AACF3C
triadic
#CFAB3C #3CCFAB #AB3CCF
tetradic
#CFAB3C #3CCF61 #3C60CF #CF3CAA
square
#CFAB3C #3CCF61 #3C60CF #CF3CAA
split-complementary
#CFAB3C #3CAACF #613CCF
monochromatic
#745F1D #A58729 #CFAB3C #DBC06D #E7D59E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFAB3C#FFFFFF#000000##000000
##CFAB3C1.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)
#BEA92C
Deuteranopia (green-blind)
#C7B342
Tritanopia (blue-blind)
#E09D94
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cfab3c;
/* rgb */ color: rgb(207, 171, 60);
/* oklch */ color: oklch(75.4% 0.132 90.5);
Tailwind
colors: {
  custom: {
    50: '#e2c378',
    500: '#cfab3c',
    950: '#000000',
  },
}
SCSS
$custom: #cfab3c;
$custom-light: #e2c378;
$custom-dark: #000000;
JSON
{
  "hex": "#cfab3c",
  "rgb": {
    "r": 207,
    "g": 171,
    "b": 60
  },
  "hsl": {
    "h": 45.306,
    "s": 60.494,
    "l": 52.353
  },
  "oklch": {
    "l": 0.75379,
    "c": 0.13223,
    "h": 90.5
  },
  "luminance": 0.42717
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFAB3C

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

Preview Lab → · Contrast checker → · Palette generator →

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