#CFAB38#CFAB38

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

Color values

HEX#CFAB38
RGBrgb(207, 171, 56)
HSLhsl(46, 61%, 52%)
HSVhsv(46, 73%, 81%)
CMYKcmyk(0%, 17.4%, 72.9%, 18.8%)
CIE-LABlab(71.34, 1.37, 60.89)
CIE-LCHlch(71.34, 60.91, 88.71°)
OKLaboklab(75.35% -0.0022 0.1348)
OKLCHoklch(75.35% 0.135 90.9)
XYZxyz(41.0111, 42.6792, 9.8184)
Luminance0.4268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAB38 #385CCF
analogous
#CF6038 #CFAB38 #A8CF38
triadic
#CFAB38 #38CFAB #AB38CF
tetradic
#CFAB38 #38CF60 #385CCF #CF38A8
square
#CFAB38 #38CF60 #385CCF #CF38A8
split-complementary
#CFAB38 #38A8CF #6038CF
monochromatic
#715D1B #A38527 #CFAB38 #DBC069 #E7D59B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFAB38#FFFFFF#000000##000000
##CFAB381.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)
#BEA926
Deuteranopia (green-blind)
#C7B33E
Tritanopia (blue-blind)
#E09D94
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cfab38;
/* rgb */ color: rgb(207, 171, 56);
/* oklch */ color: oklch(75.3% 0.135 90.9);
Tailwind
colors: {
  custom: {
    50: '#e2c376',
    500: '#cfab38',
    950: '#000000',
  },
}
SCSS
$custom: #cfab38;
$custom-light: #e2c376;
$custom-dark: #000000;
JSON
{
  "hex": "#cfab38",
  "rgb": {
    "r": 207,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 45.695,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.75348,
    "c": 0.13479,
    "h": 90.9
  },
  "luminance": 0.42677
}

Semantic roles & 50–950 ramp

primary
#CFAB38
secondary
#90A0D3
accent
#6AE444
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CFAB38

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

Preview Lab → · Contrast checker → · Palette generator →

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