#CFAB37#CFAB37

#CFAB37 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 75.3% C 0.135 H 91.0°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#CFAB37
RGBrgb(207, 171, 55)
HSLhsl(46, 61%, 51%)
HSVhsv(46, 73%, 81%)
CMYKcmyk(0%, 17.4%, 73.4%, 18.8%)
CIE-LABlab(71.33, 1.33, 61.27)
CIE-LCHlch(71.33, 61.29, 88.76°)
OKLaboklab(75.34% -0.0024 0.1354)
OKLCHoklch(75.34% 0.135 91)
XYZxyz(40.9869, 42.6696, 9.6909)
Luminance0.4267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAB37 #375BCF
analogous
#CF5F37 #CFAB37 #A7CF37
triadic
#CFAB37 #37CFAB #AB37CF
tetradic
#CFAB37 #37CF5F #375BCF #CF37A7
square
#CFAB37 #37CF5F #375BCF #CF37A7
split-complementary
#CFAB37 #37A7CF #5F37CF
monochromatic
#715C1B #A28527 #CFAB37 #DBC068 #E7D49A

Accessibility & contrast

On white

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

On black

9.53
#CFAB37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAB37
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAB37#FFFFFF#000000##000000
##CFAB371.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA925
Deuteranopia (green-blind)
#C7B33D
Tritanopia (blue-blind)
#E09D94
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cfab37;
/* rgb */ color: rgb(207, 171, 55);
/* oklch */ color: oklch(75.3% 0.135 91.0);
Tailwind
colors: {
  custom: {
    50: '#e2c375',
    500: '#cfab37',
    950: '#000000',
  },
}
SCSS
$custom: #cfab37;
$custom-light: #e2c375;
$custom-dark: #000000;
JSON
{
  "hex": "#cfab37",
  "rgb": {
    "r": 207,
    "g": 171,
    "b": 55
  },
  "hsl": {
    "h": 45.789,
    "s": 61.29,
    "l": 51.373
  },
  "oklch": {
    "l": 0.75341,
    "c": 0.1354,
    "h": 91
  },
  "luminance": 0.42667
}

Semantic roles & 50–950 ramp

primary
#CFAB37
secondary
#8F9FD2
accent
#6AE443
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CFAB37

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

Preview Lab → · Contrast checker → · Palette generator →

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