#CBAF39#CBAF39

#CBAF39 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.8% C 0.136 H 95.4°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#CBAF39
RGBrgb(203, 175, 57)
HSLhsl(48, 58%, 51%)
HSVhsv(48, 72%, 80%)
CMYKcmyk(0%, 13.8%, 71.9%, 20.4%)
CIE-LABlab(72.00, -2.43, 61.03)
CIE-LCHlch(72.00, 61.08, 92.28°)
OKLaboklab(75.78% -0.0127 0.1354)
OKLCHoklch(75.78% 0.136 95.4)
XYZxyz(40.6992, 43.6541, 10.1525)
Luminance0.4365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAF39 #3955CB
analogous
#CB6639 #CBAF39 #9ECB39
triadic
#CBAF39 #39CBAF #AF39CB
tetradic
#CBAF39 #39CB66 #3955CB #CB399E
square
#CBAF39 #39CB66 #3955CB #CB399E
split-complementary
#CBAF39 #399ECB #6639CB
monochromatic
#6D5E1D #9D8729 #CBAF39 #D8C369 #E4D69A

Accessibility & contrast

On white

2.16
#CBAF39 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.73
#CBAF39 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAF39
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAF39#FFFFFF#000000##000000
##CBAF391.002.169.739.73
#FFFFFF2.161.0021.0021.00
#0000009.7321.001.001.00
##0000009.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB27
Deuteranopia (green-blind)
#C8B440
Tritanopia (blue-blind)
#DBA197
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cbaf39;
/* rgb */ color: rgb(203, 175, 57);
/* oklch */ color: oklch(75.8% 0.136 95.4);
Tailwind
colors: {
  custom: {
    50: '#dfc677',
    500: '#cbaf39',
    950: '#000000',
  },
}
SCSS
$custom: #cbaf39;
$custom-light: #dfc677;
$custom-dark: #000000;
JSON
{
  "hex": "#cbaf39",
  "rgb": {
    "r": 203,
    "g": 175,
    "b": 57
  },
  "hsl": {
    "h": 48.493,
    "s": 58.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.75782,
    "c": 0.13599,
    "h": 95.4
  },
  "luminance": 0.43652
}

Semantic roles & 50–950 ramp

primary
#CBAF39
secondary
#909CD0
accent
#64E246
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CBAF39

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

Preview Lab → · Contrast checker → · Palette generator →

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