#CFAB3F#CFAB3F

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

Color values

HEX#CFAB3F
RGBrgb(207, 171, 63)
HSLhsl(45, 60%, 53%)
HSVhsv(45, 70%, 81%)
CMYKcmyk(0%, 17.4%, 69.6%, 18.8%)
CIE-LABlab(71.39, 1.72, 58.13)
CIE-LCHlch(71.39, 58.16, 88.30°)
OKLaboklab(75.4% -0.0004 0.1302)
OKLCHoklch(75.4% 0.13 90.2)
XYZxyz(41.1945, 42.7526, 10.7840)
Luminance0.4275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAB3F #3F63CF
analogous
#CF633F #CFAB3F #ABCF3F
triadic
#CFAB3F #3FCFAB #AB3FCF
tetradic
#CFAB3F #3FCF63 #3F63CF #CF3FAB
square
#CFAB3F #3FCF63 #3F63CF #CF3FAB
split-complementary
#CFAB3F #3FABCF #633FCF
monochromatic
#76601E #A7882A #CFAB3F #DBC070 #E7D6A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFAB3F#FFFFFF#000000##000000
##CFAB3F1.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)
#BEA931
Deuteranopia (green-blind)
#C7B344
Tritanopia (blue-blind)
#E09D95
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cfab3f;
/* rgb */ color: rgb(207, 171, 63);
/* oklch */ color: oklch(75.4% 0.130 90.2);
Tailwind
colors: {
  custom: {
    50: '#e2c37a',
    500: '#cfab3f',
    950: '#000000',
  },
}
SCSS
$custom: #cfab3f;
$custom-light: #e2c37a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfab3f",
  "rgb": {
    "r": 207,
    "g": 171,
    "b": 63
  },
  "hsl": {
    "h": 45,
    "s": 60,
    "l": 52.941
  },
  "oklch": {
    "l": 0.75404,
    "c": 0.13021,
    "h": 90.2
  },
  "luminance": 0.4275
}

Semantic roles & 50–950 ramp

primary
#CFAB3F
secondary
#96A5D4
accent
#6CE345
background
#FEFBF7
surface
#FDF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CFAB3F

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

Preview Lab → · Contrast checker → · Palette generator →

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