#CBAA38#CBAA38

#CBAA38 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.7% C 0.133 H 92.3°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#CBAA38
RGBrgb(203, 170, 56)
HSLhsl(47, 59%, 51%)
HSVhsv(47, 72%, 80%)
CMYKcmyk(0%, 16.3%, 72.4%, 20.4%)
CIE-LABlab(70.69, 0.17, 60.12)
CIE-LCHlch(70.69, 60.12, 89.84°)
OKLaboklab(74.74% -0.0054 0.1333)
OKLCHoklch(74.74% 0.133 92.3)
XYZxyz(39.7193, 41.7338, 9.7040)
Luminance0.4173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAA38 #3859CB
analogous
#CB6038 #CBAA38 #A2CB38
triadic
#CBAA38 #38CBAA #AA38CB
tetradic
#CBAA38 #38CB60 #3859CB #CB38A2
square
#CBAA38 #38CB60 #3859CB #CB38A2
split-complementary
#CBAA38 #38A2CB #6038CB
monochromatic
#6C5A1C #9D8329 #CBAA38 #D8BF69 #E4D399

Accessibility & contrast

On white

2.25
#CBAA38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#CBAA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAA38
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAA38#FFFFFF#000000##000000
##CBAA381.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA727
Deuteranopia (green-blind)
#C5B13E
Tritanopia (blue-blind)
#DB9C93
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cbaa38;
/* rgb */ color: rgb(203, 170, 56);
/* oklch */ color: oklch(74.7% 0.133 92.3);
Tailwind
colors: {
  custom: {
    50: '#dfc276',
    500: '#cbaa38',
    950: '#000000',
  },
}
SCSS
$custom: #cbaa38;
$custom-light: #dfc276;
$custom-dark: #000000;
JSON
{
  "hex": "#cbaa38",
  "rgb": {
    "r": 203,
    "g": 170,
    "b": 56
  },
  "hsl": {
    "h": 46.531,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.74745,
    "c": 0.1334,
    "h": 92.3
  },
  "luminance": 0.41731
}

Semantic roles & 50–950 ramp

primary
#CBAA38
secondary
#8F9DD0
accent
#69E246
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CBAA38

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

Preview Lab → · Contrast checker → · Palette generator →

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