#CBA838#CBA838

#CBA838 is a light, vivid yellow. Relative luminance 0.410; OKLCH L 74.3% C 0.132 H 91.0°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#CBA838
RGBrgb(203, 168, 56)
HSLhsl(46, 59%, 51%)
HSVhsv(46, 72%, 80%)
CMYKcmyk(0%, 17.2%, 72.4%, 20.4%)
CIE-LABlab(70.17, 1.23, 59.61)
CIE-LCHlch(70.17, 59.63, 88.82°)
OKLaboklab(74.34% -0.0024 0.1322)
OKLCHoklch(74.34% 0.132 91)
XYZxyz(39.3472, 40.9897, 9.5799)
Luminance0.4099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBA838 #385BCB
analogous
#CB5E38 #CBA838 #A5CB38
triadic
#CBA838 #38CBA8 #A838CB
tetradic
#CBA838 #38CB5E #385BCB #CB38A5
square
#CBA838 #38CB5E #385BCB #CB38A5
split-complementary
#CBA838 #38A5CB #5E38CB
monochromatic
#6C591C #9D8129 #CBA838 #D8BD69 #E4D299

Accessibility & contrast

On white

2.28
#CBA838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#CBA838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBA838
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBA838#FFFFFF#000000##000000
##CBA8381.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA627
Deuteranopia (green-blind)
#C3B03E
Tritanopia (blue-blind)
#DC9A92
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cba838;
/* rgb */ color: rgb(203, 168, 56);
/* oklch */ color: oklch(74.3% 0.132 91.0);
Tailwind
colors: {
  custom: {
    50: '#dfc176',
    500: '#cba838',
    950: '#000000',
  },
}
SCSS
$custom: #cba838;
$custom-light: #dfc176;
$custom-dark: #000000;
JSON
{
  "hex": "#cba838",
  "rgb": {
    "r": 203,
    "g": 168,
    "b": 56
  },
  "hsl": {
    "h": 45.714,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.74336,
    "c": 0.13223,
    "h": 91
  },
  "luminance": 0.40987
}

Semantic roles & 50–950 ramp

primary
#CBA838
secondary
#8F9ED0
accent
#6BE246
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CBA838

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

Preview Lab → · Contrast checker → · Palette generator →

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