#C7C238#C7C238

#C7C238 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.4% C 0.152 H 107.3°. Best body text is #000000 at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#C7C238
RGBrgb(199, 194, 56)
HSLhsl(58, 56%, 50%)
HSVhsv(58, 72%, 78%)
CMYKcmyk(0%, 2.5%, 71.9%, 22%)
CIE-LABlab(76.69, -14.01, 65.84)
CIE-LCHlch(76.69, 67.31, 102.02°)
OKLaboklab(79.42% -0.0454 0.1455)
OKLCHoklch(79.42% 0.152 107.3)
XYZxyz(43.5605, 51.0127, 11.2925)
Luminance0.5101 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C238 #383DC7
analogous
#C77A38 #C7C238 #85C738
triadic
#C7C238 #38C7C2 #C238C7
tetradic
#C7C238 #38C77A #383DC7 #C73885
square
#C7C238 #38C77A #383DC7 #C73885
split-complementary
#C7C238 #3885C7 #7A38C7
monochromatic
#67651D #97932B #C7C238 #D4D168 #E2DF98

Accessibility & contrast

On white

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

On black

11.20
#C7C238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C238
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C238#FFFFFF#000000##000000
##C7C2381.001.8711.2011.20
#FFFFFF1.871.0021.0021.00
#00000011.2021.001.001.00
##00000011.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA1F
Deuteranopia (green-blind)
#D5C042
Tritanopia (blue-blind)
#D5B5A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c7c238;
/* rgb */ color: rgb(199, 194, 56);
/* oklch */ color: oklch(79.4% 0.152 107.3);
Tailwind
colors: {
  custom: {
    50: '#dcd478',
    500: '#c7c238',
    950: '#000000',
  },
}
SCSS
$custom: #c7c238;
$custom-light: #dcd478;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c238",
  "rgb": {
    "r": 199,
    "g": 194,
    "b": 56
  },
  "hsl": {
    "h": 57.902,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.79421,
    "c": 0.15245,
    "h": 107.3
  },
  "luminance": 0.51011
}

Semantic roles & 50–950 ramp

primary
#C7C238
secondary
#323472
accent
#4EDF48
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7C238

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

Preview Lab → · Contrast checker → · Palette generator →

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