#CFAB3D#CFAB3D

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

Color values

HEX#CFAB3D
RGBrgb(207, 171, 61)
HSLhsl(45, 60%, 53%)
HSVhsv(45, 71%, 81%)
CMYKcmyk(0%, 17.4%, 70.5%, 18.8%)
CIE-LABlab(71.37, 1.62, 58.94)
CIE-LCHlch(71.37, 58.96, 88.43°)
OKLaboklab(75.39% -0.0009 0.1316)
OKLCHoklch(75.39% 0.132 90.4)
XYZxyz(41.1396, 42.7306, 10.4949)
Luminance0.4273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAB3D #3D61CF
analogous
#CF623D #CFAB3D #AACF3D
triadic
#CFAB3D #3DCFAB #AB3DCF
tetradic
#CFAB3D #3DCF62 #3D61CF #CF3DAA
square
#CFAB3D #3DCF62 #3D61CF #CF3DAA
split-complementary
#CFAB3D #3DAACF #623DCF
monochromatic
#755F1D #A68729 #CFAB3D #DBC06E #E7D59F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFAB3D#FFFFFF#000000##000000
##CFAB3D1.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)
#BEA92E
Deuteranopia (green-blind)
#C7B343
Tritanopia (blue-blind)
#E09D95
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cfab3d;
/* rgb */ color: rgb(207, 171, 61);
/* oklch */ color: oklch(75.4% 0.132 90.4);
Tailwind
colors: {
  custom: {
    50: '#e2c379',
    500: '#cfab3d',
    950: '#000000',
  },
}
SCSS
$custom: #cfab3d;
$custom-light: #e2c379;
$custom-dark: #000000;
JSON
{
  "hex": "#cfab3d",
  "rgb": {
    "r": 207,
    "g": 171,
    "b": 61
  },
  "hsl": {
    "h": 45.205,
    "s": 60.331,
    "l": 52.549
  },
  "oklch": {
    "l": 0.75387,
    "c": 0.13156,
    "h": 90.4
  },
  "luminance": 0.42728
}

Semantic roles & 50–950 ramp

primary
#CFAB3D
secondary
#94A4D4
accent
#6CE344
background
#FEFBF7
surface
#FDF7EE
border
#D5D0C9
text
#161209
muted
#84817B

Preview Lab

Preview with #CFAB3D

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

Preview Lab → · Contrast checker → · Palette generator →

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