#CBB338#CBB338

#CBB338 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.6% C 0.139 H 97.8°. Best body text is #000000 at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#CBB338
RGBrgb(203, 179, 56)
HSLhsl(50, 59%, 51%)
HSVhsv(50, 72%, 80%)
CMYKcmyk(0%, 11.8%, 72.4%, 20.4%)
CIE-LABlab(73.04, -4.58, 62.43)
CIE-LCHlch(73.04, 62.60, 94.19°)
OKLaboklab(76.61% -0.019 0.1382)
OKLCHoklch(76.61% 0.139 97.8)
XYZxyz(41.4646, 45.2243, 10.2857)
Luminance0.4522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBB338 #3850CB
analogous
#CB6938 #CBB338 #99CB38
triadic
#CBB338 #38CBB3 #B338CB
tetradic
#CBB338 #38CB69 #3850CB #CB3899
square
#CBB338 #38CB69 #3850CB #CB3899
split-complementary
#CBB338 #3899CB #6938CB
monochromatic
#6C5F1C #9D8A29 #CBB338 #D8C669 #E4D899

Accessibility & contrast

On white

2.09
#CBB338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.04
#CBB338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBB338
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBB338#FFFFFF#000000##000000
##CBB3381.002.0910.0410.04
#FFFFFF2.091.0021.0021.00
#00000010.0421.001.001.00
##00000010.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF24
Deuteranopia (green-blind)
#CBB740
Tritanopia (blue-blind)
#DBA59B
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cbb338;
/* rgb */ color: rgb(203, 179, 56);
/* oklch */ color: oklch(76.6% 0.139 97.8);
Tailwind
colors: {
  custom: {
    50: '#dfc977',
    500: '#cbb338',
    950: '#000000',
  },
}
SCSS
$custom: #cbb338;
$custom-light: #dfc977;
$custom-dark: #000000;
JSON
{
  "hex": "#cbb338",
  "rgb": {
    "r": 203,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 50.204,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.76605,
    "c": 0.13947,
    "h": 97.8
  },
  "luminance": 0.45222
}

Semantic roles & 50–950 ramp

primary
#CBB338
secondary
#8F99D0
accent
#5FE246
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CBB338

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

Preview Lab → · Contrast checker → · Palette generator →

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