#CBAF42#CBAF42

#CBAF42 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.9% C 0.130 H 94.6°. Best body text is #000000 at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#CBAF42
RGBrgb(203, 175, 66)
HSLhsl(48, 57%, 53%)
HSVhsv(48, 67%, 80%)
CMYKcmyk(0%, 13.8%, 67.5%, 20.4%)
CIE-LABlab(72.06, -1.96, 57.45)
CIE-LCHlch(72.06, 57.49, 91.95°)
OKLaboklab(75.85% -0.0104 0.1294)
OKLCHoklch(75.85% 0.13 94.6)
XYZxyz(40.9439, 43.7520, 11.4416)
Luminance0.4375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAF42 #425ECB
analogous
#CB6A42 #CBAF42 #A3CB42
triadic
#CBAF42 #42CBAF #AF42CB
tetradic
#CBAF42 #42CB6A #425ECB #CB42A3
square
#CBAF42 #42CB6A #425ECB #CB42A3
split-complementary
#CBAF42 #42A3CB #6A42CB
monochromatic
#736220 #A38B2D #CBAF42 #D8C372 #E5D8A2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CBAF42#FFFFFF#000000##000000
##CBAF421.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)
#C1AC34
Deuteranopia (green-blind)
#C8B448
Tritanopia (blue-blind)
#DBA298
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cbaf42;
/* rgb */ color: rgb(203, 175, 66);
/* oklch */ color: oklch(75.9% 0.130 94.6);
Tailwind
colors: {
  custom: {
    50: '#dec67c',
    500: '#cbaf42',
    950: '#000000',
  },
}
SCSS
$custom: #cbaf42;
$custom-light: #dec67c;
$custom-dark: #000000;
JSON
{
  "hex": "#cbaf42",
  "rgb": {
    "r": 203,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 47.737,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.75855,
    "c": 0.12983,
    "h": 94.6
  },
  "luminance": 0.4375
}

Semantic roles & 50–950 ramp

primary
#CBAF42
secondary
#97A3D2
accent
#67E048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CBAF42

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

Preview Lab → · Contrast checker → · Palette generator →

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