#C7C140#C7C140

#C7C140 is a light, vivid yellow. Relative luminance 0.507; OKLCH L 79.3% C 0.146 H 106.7°. Best body text is #000000 at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#C7C140
RGBrgb(199, 193, 64)
HSLhsl(57, 55%, 52%)
HSVhsv(57, 68%, 78%)
CMYKcmyk(0%, 3%, 67.8%, 22%)
CIE-LABlab(76.47, -13.11, 62.66)
CIE-LCHlch(76.47, 64.02, 101.81°)
OKLaboklab(79.26% -0.042 0.1402)
OKLCHoklch(79.26% 0.146 106.7)
XYZxyz(43.5502, 50.6537, 12.3326)
Luminance0.5065 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C140 #4046C7
analogous
#C77E40 #C7C140 #8AC740
triadic
#C7C140 #40C7C1 #C140C7
tetradic
#C7C140 #40C77E #4046C7 #C7408A
square
#C7C140 #40C77E #4046C7 #C7408A
split-complementary
#C7C140 #408AC7 #7E40C7
monochromatic
#6D6920 #9C972E #C7C140 #D5D06F #E3E09F

Accessibility & contrast

On white

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

On black

11.13
#C7C140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C140
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C140#FFFFFF#000000##000000
##C7C1401.001.8911.1311.13
#FFFFFF1.891.0021.0021.00
#00000011.1321.001.001.00
##00000011.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA2D
Deuteranopia (green-blind)
#D4BF49
Tritanopia (blue-blind)
#D5B4A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c7c140;
/* rgb */ color: rgb(199, 193, 64);
/* oklch */ color: oklch(79.3% 0.146 106.7);
Tailwind
colors: {
  custom: {
    50: '#dbd37c',
    500: '#c7c140',
    950: '#000000',
  },
}
SCSS
$custom: #c7c140;
$custom-light: #dbd37c;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c140",
  "rgb": {
    "r": 199,
    "g": 193,
    "b": 64
  },
  "hsl": {
    "h": 57.333,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.79264,
    "c": 0.14638,
    "h": 106.7
  },
  "luminance": 0.50652
}

Semantic roles & 50–950 ramp

primary
#C7C140
secondary
#353876
accent
#50DE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7C140

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

Preview Lab → · Contrast checker → · Palette generator →

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