#C7C852#C7C852

#C7C852 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 80.9% C 0.140 H 109.6°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#C7C852
RGBrgb(199, 200, 82)
HSLhsl(61, 52%, 55%)
HSVhsv(61, 59%, 78%)
CMYKcmyk(0.5%, 0%, 59%, 21.6%)
CIE-LABlab(78.50, -15.52, 57.37)
CIE-LCHlch(78.50, 59.43, 105.13°)
OKLaboklab(80.93% -0.0469 0.1317)
OKLCHoklch(80.93% 0.14 109.6)
XYZxyz(45.7318, 54.0611, 16.0068)
Luminance0.5406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C852 #5352C8
analogous
#C88E52 #C7C852 #8CC852
triadic
#C7C852 #52C7C8 #C852C7
tetradic
#C7C852 #52C88E #5352C8 #C8528C
square
#C7C852 #52C88E #5352C8 #C8528C
split-complementary
#C7C852 #528CC8 #8E52C8
monochromatic
#787927 #A7A835 #C7C852 #D6D780 #E5E6AF

Accessibility & contrast

On white

1.78
#C7C852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#C7C852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C852
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C852#FFFFFF#000000##000000
##C7C8521.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C045
Deuteranopia (green-blind)
#D8C459
Tritanopia (blue-blind)
#D4BCAF
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #c7c852;
/* rgb */ color: rgb(199, 200, 82);
/* oklch */ color: oklch(80.9% 0.140 109.6);
Tailwind
colors: {
  custom: {
    50: '#dbd887',
    500: '#c7c852',
    950: '#000000',
  },
}
SCSS
$custom: #c7c852;
$custom-light: #dbd887;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c852",
  "rgb": {
    "r": 199,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 60.508,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.80927,
    "c": 0.13982,
    "h": 109.6
  },
  "luminance": 0.5406
}

Semantic roles & 50–950 ramp

primary
#C7C852
secondary
#3D3D82
accent
#4DDB4E
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #C7C852

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

Preview Lab → · Contrast checker → · Palette generator →

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