#C8B938#C8B938

#C8B938 is a light, vivid yellow. Relative luminance 0.473; OKLCH L 77.6% C 0.144 H 102.5°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#C8B938
RGBrgb(200, 185, 56)
HSLhsl(54, 57%, 50%)
HSVhsv(54, 72%, 78%)
CMYKcmyk(0%, 7.5%, 72%, 21.6%)
CIE-LABlab(74.36, -8.99, 63.62)
CIE-LCHlch(74.36, 64.25, 98.04°)
OKLaboklab(77.59% -0.0313 0.1408)
OKLCHoklch(77.59% 0.144 102.5)
XYZxyz(41.8840, 47.2646, 10.6574)
Luminance0.4726 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8B938 #3847C8
analogous
#C87138 #C8B938 #8FC838
triadic
#C8B938 #38C8B9 #B938C8
tetradic
#C8B938 #38C871 #3847C8 #C8388F
square
#C8B938 #38C871 #3847C8 #C8388F
split-complementary
#C8B938 #388FC8 #7138C8
monochromatic
#69611D #998D2A #C8B938 #D5CA68 #E3DB98

Accessibility & contrast

On white

2.01
#C8B938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#C8B938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8B938
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8B938#FFFFFF#000000##000000
##C8B9381.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB322
Deuteranopia (green-blind)
#CFBA41
Tritanopia (blue-blind)
#D7ACA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #c8b938;
/* rgb */ color: rgb(200, 185, 56);
/* oklch */ color: oklch(77.6% 0.144 102.5);
Tailwind
colors: {
  custom: {
    50: '#dccd77',
    500: '#c8b938',
    950: '#000000',
  },
}
SCSS
$custom: #c8b938;
$custom-light: #dccd77;
$custom-dark: #000000;
JSON
{
  "hex": "#c8b938",
  "rgb": {
    "r": 200,
    "g": 185,
    "b": 56
  },
  "hsl": {
    "h": 53.75,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.77588,
    "c": 0.14424,
    "h": 102.5
  },
  "luminance": 0.47263
}

Semantic roles & 50–950 ramp

primary
#C8B938
secondary
#8E94CE
accent
#58E048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #C8B938

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

Preview Lab → · Contrast checker → · Palette generator →

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