#C8BA38#C8BA38

#C8BA38 is a light, vivid yellow. Relative luminance 0.477; OKLCH L 77.8% C 0.145 H 103.0°. Best body text is #000000 at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#C8BA38
RGBrgb(200, 186, 56)
HSLhsl(54, 57%, 50%)
HSVhsv(54, 72%, 78%)
CMYKcmyk(0%, 7%, 72%, 21.6%)
CIE-LABlab(74.63, -9.51, 63.88)
CIE-LCHlch(74.63, 64.58, 98.46°)
OKLaboklab(77.8% -0.0327 0.1414)
OKLCHoklch(77.8% 0.145 103)
XYZxyz(42.0940, 47.6845, 10.7274)
Luminance0.4768 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8BA38 #3846C8
analogous
#C87238 #C8BA38 #8EC838
triadic
#C8BA38 #38C8BA #BA38C8
tetradic
#C8BA38 #38C872 #3846C8 #C8388E
square
#C8BA38 #38C872 #3846C8 #C8388E
split-complementary
#C8BA38 #388EC8 #7238C8
monochromatic
#69611D #998E2A #C8BA38 #D5CB68 #E3DB98

Accessibility & contrast

On white

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

On black

10.54
#C8BA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8BA38
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8BA38#FFFFFF#000000##000000
##C8BA381.001.9910.5410.54
#FFFFFF1.991.0021.0021.00
#00000010.5421.001.001.00
##00000010.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c8ba38;
/* rgb */ color: rgb(200, 186, 56);
/* oklch */ color: oklch(77.8% 0.145 103.0);
Tailwind
colors: {
  custom: {
    50: '#dcce77',
    500: '#c8ba38',
    950: '#000000',
  },
}
SCSS
$custom: #c8ba38;
$custom-light: #dcce77;
$custom-dark: #000000;
JSON
{
  "hex": "#c8ba38",
  "rgb": {
    "r": 200,
    "g": 186,
    "b": 56
  },
  "hsl": {
    "h": 54.167,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.778,
    "c": 0.1451,
    "h": 103
  },
  "luminance": 0.47683
}

Semantic roles & 50–950 ramp

primary
#C8BA38
secondary
#8E94CE
accent
#57E048
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#161309
muted
#84827B

Preview Lab

Preview with #C8BA38

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

Preview Lab → · Contrast checker → · Palette generator →

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