#CBA938#CBA938

#CBA938 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.5% C 0.133 H 91.7°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#CBA938
RGBrgb(203, 169, 56)
HSLhsl(46, 59%, 51%)
HSVhsv(46, 72%, 80%)
CMYKcmyk(0%, 16.7%, 72.4%, 20.4%)
CIE-LABlab(70.43, 0.70, 59.87)
CIE-LCHlch(70.43, 59.87, 89.33°)
OKLaboklab(74.54% -0.0039 0.1328)
OKLCHoklch(74.54% 0.133 91.7)
XYZxyz(39.5326, 41.3603, 9.6417)
Luminance0.4136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBA938 #385ACB
analogous
#CB5F38 #CBA938 #A4CB38
triadic
#CBA938 #38CBA9 #A938CB
tetradic
#CBA938 #38CB5F #385ACB #CB38A4
square
#CBA938 #38CB5F #385ACB #CB38A4
split-complementary
#CBA938 #38A4CB #5F38CB
monochromatic
#6C5A1C #9D8229 #CBA938 #D8BE69 #E4D399

Accessibility & contrast

On white

2.26
#CBA938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#CBA938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBA938
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBA938#FFFFFF#000000##000000
##CBA9381.002.269.279.27
#FFFFFF2.261.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA727
Deuteranopia (green-blind)
#C4B03E
Tritanopia (blue-blind)
#DC9B92
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cba938;
/* rgb */ color: rgb(203, 169, 56);
/* oklch */ color: oklch(74.5% 0.133 91.7);
Tailwind
colors: {
  custom: {
    50: '#dfc276',
    500: '#cba938',
    950: '#000000',
  },
}
SCSS
$custom: #cba938;
$custom-light: #dfc276;
$custom-dark: #000000;
JSON
{
  "hex": "#cba938",
  "rgb": {
    "r": 203,
    "g": 169,
    "b": 56
  },
  "hsl": {
    "h": 46.122,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.7454,
    "c": 0.13281,
    "h": 91.7
  },
  "luminance": 0.41358
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CBA938

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

Preview Lab → · Contrast checker → · Palette generator →

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