#C8B240#C8B240

#C8B240 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 76.2% C 0.133 H 98.2°. Best body text is #000000 at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#C8B240
RGBrgb(200, 178, 64)
HSLhsl(50, 55%, 52%)
HSVhsv(50, 68%, 78%)
CMYKcmyk(0%, 11%, 68%, 21.6%)
CIE-LABlab(72.56, -4.94, 58.71)
CIE-LCHlch(72.56, 58.92, 94.81°)
OKLaboklab(76.18% -0.0189 0.1318)
OKLCHoklch(76.18% 0.133 98.2)
XYZxyz(40.6671, 44.4923, 11.2953)
Luminance0.4449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8B240 #4056C8
analogous
#C86E40 #C8B240 #9AC840
triadic
#C8B240 #40C8B2 #B240C8
tetradic
#C8B240 #40C86E #4056C8 #C8409A
square
#C8B240 #40C86E #4056C8 #C8409A
split-complementary
#C8B240 #409AC8 #6E40C8
monochromatic
#6E6120 #9D8B2D #C8B240 #D6C570 #E3D89F

Accessibility & contrast

On white

2.12
#C8B240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.90
#C8B240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8B240
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8B240#FFFFFF#000000##000000
##C8B2401.002.129.909.90
#FFFFFF2.121.0021.0021.00
#0000009.9021.001.001.00
##0000009.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE31
Deuteranopia (green-blind)
#C9B546
Tritanopia (blue-blind)
#D7A59B
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #c8b240;
/* rgb */ color: rgb(200, 178, 64);
/* oklch */ color: oklch(76.2% 0.133 98.2);
Tailwind
colors: {
  custom: {
    50: '#dcc87b',
    500: '#c8b240',
    950: '#000000',
  },
}
SCSS
$custom: #c8b240;
$custom-light: #dcc87b;
$custom-dark: #000000;
JSON
{
  "hex": "#c8b240",
  "rgb": {
    "r": 200,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 50.294,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.76176,
    "c": 0.13319,
    "h": 98.2
  },
  "luminance": 0.4449
}

Semantic roles & 50–950 ramp

primary
#C8B240
secondary
#949ED0
accent
#61DF49
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#15130A
muted
#84827C

Preview Lab

Preview with #C8B240

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

Preview Lab → · Contrast checker → · Palette generator →

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