#CFAB3E#CFAB3E

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

Color values

HEX#CFAB3E
RGBrgb(207, 171, 62)
HSLhsl(45, 60%, 53%)
HSVhsv(45, 70%, 81%)
CMYKcmyk(0%, 17.4%, 70%, 18.8%)
CIE-LABlab(71.38, 1.67, 58.54)
CIE-LCHlch(71.38, 58.56, 88.37°)
OKLaboklab(75.4% -0.0006 0.1309)
OKLCHoklch(75.4% 0.131 90.3)
XYZxyz(41.1668, 42.7415, 10.6381)
Luminance0.4274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAB3E #3E62CF
analogous
#CF623E #CFAB3E #ABCF3E
triadic
#CFAB3E #3ECFAB #AB3ECF
tetradic
#CFAB3E #3ECF62 #3E62CF #CF3EAB
square
#CFAB3E #3ECF62 #3E62CF #CF3EAB
split-complementary
#CFAB3E #3EABCF #623ECF
monochromatic
#75601D #A68729 #CFAB3E #DBC06F #E7D6A0

Accessibility & contrast

On white

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

On black

9.55
#CFAB3E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAB3E
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAB3E#FFFFFF#000000##000000
##CFAB3E1.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA92F
Deuteranopia (green-blind)
#C7B343
Tritanopia (blue-blind)
#E09D95
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cfab3e;
/* rgb */ color: rgb(207, 171, 62);
/* oklch */ color: oklch(75.4% 0.131 90.3);
Tailwind
colors: {
  custom: {
    50: '#e2c379',
    500: '#cfab3e',
    950: '#000000',
  },
}
SCSS
$custom: #cfab3e;
$custom-light: #e2c379;
$custom-dark: #000000;
JSON
{
  "hex": "#cfab3e",
  "rgb": {
    "r": 207,
    "g": 171,
    "b": 62
  },
  "hsl": {
    "h": 45.103,
    "s": 60.166,
    "l": 52.745
  },
  "oklch": {
    "l": 0.75395,
    "c": 0.13089,
    "h": 90.3
  },
  "luminance": 0.42739
}

Semantic roles & 50–950 ramp

primary
#CFAB3E
secondary
#95A5D4
accent
#6CE344
background
#FEFBF7
surface
#FDF7EE
border
#D5D0C9
text
#161209
muted
#84817B

Preview Lab

Preview with #CFAB3E

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

Preview Lab → · Contrast checker → · Palette generator →

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