#C8BA42#C8BA42

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

Color values

HEX#C8BA42
RGBrgb(200, 186, 66)
HSLhsl(54, 55%, 52%)
HSVhsv(54, 67%, 78%)
CMYKcmyk(0%, 7%, 67%, 21.6%)
CIE-LABlab(74.69, -8.99, 60.09)
CIE-LCHlch(74.69, 60.76, 98.51°)
OKLaboklab(77.88% -0.0302 0.1351)
OKLCHoklch(77.88% 0.138 102.6)
XYZxyz(42.3634, 47.7922, 12.1465)
Luminance0.4779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8BA42 #4250C8
analogous
#C87742 #C8BA42 #93C842
triadic
#C8BA42 #42C8BA #BA42C8
tetradic
#C8BA42 #42C877 #4250C8 #C84293
square
#C8BA42 #42C877 #4250C8 #C84293
split-complementary
#C8BA42 #4293C8 #7742C8
monochromatic
#6F6720 #9F932E #C8BA42 #D6CB71 #E4DDA1

Accessibility & contrast

On white

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

On black

10.56
#C8BA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8BA42
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8BA42#FFFFFF#000000##000000
##C8BA421.001.9910.5610.56
#FFFFFF1.991.0021.0021.00
#00000010.5621.001.001.00
##00000010.5621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c8ba42;
/* rgb */ color: rgb(200, 186, 66);
/* oklch */ color: oklch(77.9% 0.138 102.6);
Tailwind
colors: {
  custom: {
    50: '#dcce7d',
    500: '#c8ba42',
    950: '#000000',
  },
}
SCSS
$custom: #c8ba42;
$custom-light: #dcce7d;
$custom-dark: #000000;
JSON
{
  "hex": "#c8ba42",
  "rgb": {
    "r": 200,
    "g": 186,
    "b": 66
  },
  "hsl": {
    "h": 53.731,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.77876,
    "c": 0.13843,
    "h": 102.6
  },
  "luminance": 0.47791
}

Semantic roles & 50–950 ramp

primary
#C8BA42
secondary
#969CD0
accent
#59DE4A
background
#FDFCF7
surface
#FBF9EE
border
#D4D2C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C8BA42

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

Preview Lab → · Contrast checker → · Palette generator →

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