#CBAF40#CBAF40

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

Color values

HEX#CBAF40
RGBrgb(203, 175, 64)
HSLhsl(48, 57%, 52%)
HSVhsv(48, 68%, 80%)
CMYKcmyk(0%, 13.8%, 68.5%, 20.4%)
CIE-LABlab(72.05, -2.07, 58.27)
CIE-LCHlch(72.05, 58.31, 92.04°)
OKLaboklab(75.84% -0.0109 0.1308)
OKLCHoklch(75.84% 0.131 94.8)
XYZxyz(40.8860, 43.7288, 11.1364)
Luminance0.4373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAF40 #405CCB
analogous
#CB6A40 #CBAF40 #A1CB40
triadic
#CBAF40 #40CBAF #AF40CB
tetradic
#CBAF40 #40CB6A #405CCB #CB40A1
square
#CBAF40 #40CB6A #405CCB #CB40A1
split-complementary
#CBAF40 #40A1CB #6A40CB
monochromatic
#72611F #A28A2C #CBAF40 #D8C370 #E5D7A0

Accessibility & contrast

On white

2.15
#CBAF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.75
#CBAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAF40
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAF40#FFFFFF#000000##000000
##CBAF401.002.159.759.75
#FFFFFF2.151.0021.0021.00
#0000009.7521.001.001.00
##0000009.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC31
Deuteranopia (green-blind)
#C8B446
Tritanopia (blue-blind)
#DBA298
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cbaf40;
/* rgb */ color: rgb(203, 175, 64);
/* oklch */ color: oklch(75.8% 0.131 94.8);
Tailwind
colors: {
  custom: {
    50: '#dec67b',
    500: '#cbaf40',
    950: '#000000',
  },
}
SCSS
$custom: #cbaf40;
$custom-light: #dec67b;
$custom-dark: #000000;
JSON
{
  "hex": "#cbaf40",
  "rgb": {
    "r": 203,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 47.914,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.75838,
    "c": 0.13127,
    "h": 94.8
  },
  "luminance": 0.43727
}

Semantic roles & 50–950 ramp

primary
#CBAF40
secondary
#95A1D2
accent
#66E047
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CBAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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