#CBAC38#CBAC38

#CBAC38 is a light, vivid yellow. Relative luminance 0.425; OKLCH L 75.2% C 0.135 H 93.6°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#CBAC38
RGBrgb(203, 172, 56)
HSLhsl(47, 59%, 51%)
HSVhsv(47, 72%, 80%)
CMYKcmyk(0%, 15.3%, 72.4%, 20.4%)
CIE-LABlab(71.21, -0.90, 60.64)
CIE-LCHlch(71.21, 60.64, 90.85°)
OKLaboklab(75.16% -0.0084 0.1344)
OKLCHoklch(75.16% 0.135 93.6)
XYZxyz(40.0971, 42.4894, 9.8299)
Luminance0.4249 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAC38 #3857CB
analogous
#CB6238 #CBAC38 #A0CB38
triadic
#CBAC38 #38CBAC #AC38CB
tetradic
#CBAC38 #38CB62 #3857CB #CB38A0
square
#CBAC38 #38CB62 #3857CB #CB38A0
split-complementary
#CBAC38 #38A0CB #6238CB
monochromatic
#6C5B1C #9D8429 #CBAC38 #D8C069 #E4D499

Accessibility & contrast

On white

2.21
#CBAC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#CBAC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAC38
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAC38#FFFFFF#000000##000000
##CBAC381.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA926
Deuteranopia (green-blind)
#C6B23F
Tritanopia (blue-blind)
#DB9E95
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cbac38;
/* rgb */ color: rgb(203, 172, 56);
/* oklch */ color: oklch(75.2% 0.135 93.6);
Tailwind
colors: {
  custom: {
    50: '#dfc476',
    500: '#cbac38',
    950: '#000000',
  },
}
SCSS
$custom: #cbac38;
$custom-light: #dfc476;
$custom-dark: #000000;
JSON
{
  "hex": "#cbac38",
  "rgb": {
    "r": 203,
    "g": 172,
    "b": 56
  },
  "hsl": {
    "h": 47.347,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.75156,
    "c": 0.13465,
    "h": 93.6
  },
  "luminance": 0.42487
}

Semantic roles & 50–950 ramp

primary
#CBAC38
secondary
#8F9DD0
accent
#67E246
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CBAC38

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

Preview Lab → · Contrast checker → · Palette generator →

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