#CBB238#CBB238

#CBB238 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 76.4% C 0.139 H 97.2°. Best body text is #000000 at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#CBB238
RGBrgb(203, 178, 56)
HSLhsl(50, 59%, 51%)
HSVhsv(50, 72%, 80%)
CMYKcmyk(0%, 12.3%, 72.4%, 20.4%)
CIE-LABlab(72.78, -4.05, 62.17)
CIE-LCHlch(72.78, 62.30, 93.73°)
OKLaboklab(76.4% -0.0175 0.1376)
OKLCHoklch(76.4% 0.139 97.2)
XYZxyz(41.2649, 44.8249, 10.2192)
Luminance0.4482 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBB238 #3851CB
analogous
#CB6838 #CBB238 #9ACB38
triadic
#CBB238 #38CBB2 #B238CB
tetradic
#CBB238 #38CB68 #3851CB #CB389A
square
#CBB238 #38CB68 #3851CB #CB389A
split-complementary
#CBB238 #389ACB #6838CB
monochromatic
#6C5F1C #9D8929 #CBB238 #D8C569 #E4D899

Accessibility & contrast

On white

2.11
#CBB238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.96
#CBB238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBB238
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBB238#FFFFFF#000000##000000
##CBB2381.002.119.969.96
#FFFFFF2.111.0021.0021.00
#0000009.9621.001.001.00
##0000009.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE24
Deuteranopia (green-blind)
#CAB63F
Tritanopia (blue-blind)
#DBA49A
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cbb238;
/* rgb */ color: rgb(203, 178, 56);
/* oklch */ color: oklch(76.4% 0.139 97.2);
Tailwind
colors: {
  custom: {
    50: '#dfc877',
    500: '#cbb238',
    950: '#000000',
  },
}
SCSS
$custom: #cbb238;
$custom-light: #dfc877;
$custom-dark: #000000;
JSON
{
  "hex": "#cbb238",
  "rgb": {
    "r": 203,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 49.796,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.76397,
    "c": 0.13874,
    "h": 97.2
  },
  "luminance": 0.44823
}

Semantic roles & 50–950 ramp

primary
#CBB238
secondary
#8F9AD0
accent
#61E246
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CBB238

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

Preview Lab → · Contrast checker → · Palette generator →

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