#C9C238#C9C238

#C9C238 is a light, vivid yellow. Relative luminance 0.513; OKLCH L 79.6% C 0.152 H 106.5°. Best body text is #000000 at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#C9C238
RGBrgb(201, 194, 56)
HSLhsl(57, 57%, 50%)
HSVhsv(57, 72%, 79%)
CMYKcmyk(0%, 3.5%, 72.1%, 21.2%)
CIE-LABlab(76.85, -13.16, 66.06)
CIE-LCHlch(76.85, 67.35, 101.27°)
OKLaboklab(79.59% -0.0431 0.1459)
OKLCHoklch(79.59% 0.152 106.5)
XYZxyz(44.0947, 51.2882, 11.3175)
Luminance0.5129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C238 #383FC9
analogous
#C97938 #C9C238 #88C938
triadic
#C9C238 #38C9C2 #C238C9
tetradic
#C9C238 #38C979 #383FC9 #C93888
square
#C9C238 #38C979 #383FC9 #C93888
split-complementary
#C9C238 #3888C9 #7938C9
monochromatic
#6A661D #9A952A #C9C238 #D6D168 #E3E098

Accessibility & contrast

On white

1.87
#C9C238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.26
#C9C238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C238
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C238#FFFFFF#000000##000000
##C9C2381.001.8711.2611.26
#FFFFFF1.871.0021.0021.00
#00000011.2621.001.001.00
##00000011.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB1F
Deuteranopia (green-blind)
#D6C042
Tritanopia (blue-blind)
#D8B5A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c9c238;
/* rgb */ color: rgb(201, 194, 56);
/* oklch */ color: oklch(79.6% 0.152 106.5);
Tailwind
colors: {
  custom: {
    50: '#ddd478',
    500: '#c9c238',
    950: '#000000',
  },
}
SCSS
$custom: #c9c238;
$custom-light: #ddd478;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c238",
  "rgb": {
    "r": 201,
    "g": 194,
    "b": 56
  },
  "hsl": {
    "h": 57.103,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.79594,
    "c": 0.15216,
    "h": 106.5
  },
  "luminance": 0.51287
}

Semantic roles & 50–950 ramp

primary
#C9C238
secondary
#313574
accent
#4FE147
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#16140A
muted
#84837D

Preview Lab

Preview with #C9C238

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

Preview Lab → · Contrast checker → · Palette generator →

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