#C7C152#C7C152

#C7C152 is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.4% C 0.133 H 106.2°. Best body text is #000000 at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#C7C152
RGBrgb(199, 193, 82)
HSLhsl(57, 51%, 55%)
HSVhsv(57, 59%, 78%)
CMYKcmyk(0%, 3%, 58.8%, 22%)
CIE-LABlab(76.61, -11.98, 55.30)
CIE-LCHlch(76.61, 56.58, 102.22°)
OKLaboklab(79.43% -0.0369 0.1273)
OKLCHoklch(79.43% 0.133 106.2)
XYZxyz(44.1476, 50.8926, 15.4787)
Luminance0.5089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C152 #5258C7
analogous
#C78652 #C7C152 #93C752
triadic
#C7C152 #52C7C1 #C152C7
tetradic
#C7C152 #52C786 #5258C7 #C75293
square
#C7C152 #52C786 #5258C7 #C75293
split-complementary
#C7C152 #5293C7 #8652C7
monochromatic
#787427 #A6A036 #C7C152 #D6D280 #E5E2AE

Accessibility & contrast

On white

1.88
#C7C152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.18
#C7C152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C152
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C152#FFFFFF#000000##000000
##C7C1521.001.8811.1811.18
#FFFFFF1.881.0021.0021.00
#00000011.1821.001.001.00
##00000011.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA46
Deuteranopia (green-blind)
#D3BF58
Tritanopia (blue-blind)
#D4B5A9
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c7c152;
/* rgb */ color: rgb(199, 193, 82);
/* oklch */ color: oklch(79.4% 0.133 106.2);
Tailwind
colors: {
  custom: {
    50: '#dbd387',
    500: '#c7c152',
    950: '#000000',
  },
}
SCSS
$custom: #c7c152;
$custom-light: #dbd387;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c152",
  "rgb": {
    "r": 199,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 56.923,
    "s": 51.092,
    "l": 55.098
  },
  "oklch": {
    "l": 0.79426,
    "c": 0.13253,
    "h": 106.2
  },
  "luminance": 0.50891
}

Semantic roles & 50–950 ramp

primary
#C7C152
secondary
#3D4080
accent
#54DB4D
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #C7C152

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

Preview Lab → · Contrast checker → · Palette generator →

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