#C7C138#C7C138

#C7C138 is a light, vivid yellow. Relative luminance 0.506; OKLCH L 79.2% C 0.151 H 106.9°. Best body text is #000000 at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#C7C138
RGBrgb(199, 193, 56)
HSLhsl(57, 56%, 50%)
HSVhsv(57, 72%, 78%)
CMYKcmyk(0%, 3%, 71.9%, 22%)
CIE-LABlab(76.42, -13.51, 65.58)
CIE-LCHlch(76.42, 66.96, 101.64°)
OKLaboklab(79.21% -0.044 0.145)
OKLCHoklch(79.21% 0.152 106.9)
XYZxyz(43.3387, 50.5691, 11.2185)
Luminance0.5057 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C138 #383EC7
analogous
#C77A38 #C7C138 #85C738
triadic
#C7C138 #38C7C1 #C138C7
tetradic
#C7C138 #38C77A #383EC7 #C73885
square
#C7C138 #38C77A #383EC7 #C73885
split-complementary
#C7C138 #3885C7 #7A38C7
monochromatic
#67641D #97932B #C7C138 #D4D068 #E2DF98

Accessibility & contrast

On white

1.89
#C7C138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.11
#C7C138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C138
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C138#FFFFFF#000000##000000
##C7C1381.001.8911.1111.11
#FFFFFF1.891.0021.0021.00
#00000011.1121.001.001.00
##00000011.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA1F
Deuteranopia (green-blind)
#D4BF42
Tritanopia (blue-blind)
#D6B4A6
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c7c138;
/* rgb */ color: rgb(199, 193, 56);
/* oklch */ color: oklch(79.2% 0.151 106.9);
Tailwind
colors: {
  custom: {
    50: '#dcd378',
    500: '#c7c138',
    950: '#000000',
  },
}
SCSS
$custom: #c7c138;
$custom-light: #dcd378;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c138",
  "rgb": {
    "r": 199,
    "g": 193,
    "b": 56
  },
  "hsl": {
    "h": 57.483,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.79206,
    "c": 0.1515,
    "h": 106.9
  },
  "luminance": 0.50568
}

Semantic roles & 50–950 ramp

primary
#C7C138
secondary
#323472
accent
#4FDF48
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #C7C138

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

Preview Lab → · Contrast checker → · Palette generator →

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