#C8BA40#C8BA40

#C8BA40 is a light, vivid yellow. Relative luminance 0.478; OKLCH L 77.9% C 0.140 H 102.7°. Best body text is #000000 at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#C8BA40
RGBrgb(200, 186, 64)
HSLhsl(54, 55%, 52%)
HSVhsv(54, 68%, 78%)
CMYKcmyk(0%, 7%, 68%, 21.6%)
CIE-LABlab(74.68, -9.10, 60.88)
CIE-LCHlch(74.68, 61.55, 98.50°)
OKLaboklab(77.86% -0.0307 0.1364)
OKLCHoklch(77.86% 0.14 102.7)
XYZxyz(42.3055, 47.7691, 11.8414)
Luminance0.4777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8BA40 #404EC8
analogous
#C87640 #C8BA40 #92C840
triadic
#C8BA40 #40C8BA #BA40C8
tetradic
#C8BA40 #40C876 #404EC8 #C84092
square
#C8BA40 #40C876 #404EC8 #C84092
split-complementary
#C8BA40 #4092C8 #7640C8
monochromatic
#6E6620 #9D922D #C8BA40 #D6CB70 #E3DC9F

Accessibility & contrast

On white

1.99
#C8BA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.55
#C8BA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8BA40
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8BA40#FFFFFF#000000##000000
##C8BA401.001.9910.5510.55
#FFFFFF1.991.0021.0021.00
#00000010.5521.001.001.00
##00000010.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB42F
Deuteranopia (green-blind)
#CFBB48
Tritanopia (blue-blind)
#D7ADA1
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #c8ba40;
/* rgb */ color: rgb(200, 186, 64);
/* oklch */ color: oklch(77.9% 0.140 102.7);
Tailwind
colors: {
  custom: {
    50: '#dcce7c',
    500: '#c8ba40',
    950: '#000000',
  },
}
SCSS
$custom: #c8ba40;
$custom-light: #dcce7c;
$custom-dark: #000000;
JSON
{
  "hex": "#c8ba40",
  "rgb": {
    "r": 200,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 53.824,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.7786,
    "c": 0.13984,
    "h": 102.7
  },
  "luminance": 0.47767
}

Semantic roles & 50–950 ramp

primary
#C8BA40
secondary
#949AD0
accent
#59DF49
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#15130A
muted
#84827C

Preview Lab

Preview with #C8BA40

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

Preview Lab → · Contrast checker → · Palette generator →

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