#C7C226#C7C226

#C7C226 is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.3% C 0.162 H 107.6°. Best body text is #000000 at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#C7C226
RGBrgb(199, 194, 38)
HSLhsl(58, 68%, 46%)
HSVhsv(58, 81%, 78%)
CMYKcmyk(0%, 2.5%, 80.9%, 22%)
CIE-LABlab(76.60, -14.71, 71.33)
CIE-LCHlch(76.60, 72.83, 101.65°)
OKLaboklab(79.32% -0.0488 0.154)
OKLCHoklch(79.32% 0.162 107.6)
XYZxyz(43.1966, 50.8672, 9.3763)
Luminance0.5087 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C226 #262BC7
analogous
#C77226 #C7C226 #7CC726
triadic
#C7C226 #26C7C2 #C226C7
tetradic
#C7C226 #26C772 #262BC7 #C7267C
square
#C7C226 #26C772 #262BC7 #C7267C
split-complementary
#C7C226 #267CC7 #7226C7
monochromatic
#605E12 #94901C #C7C226 #DDD94D #E7E481

Accessibility & contrast

On white

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

On black

11.17
#C7C226 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C226
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C226#FFFFFF#000000##000000
##C7C2261.001.8811.1711.17
#FFFFFF1.881.0021.0021.00
#00000011.1721.001.001.00
##00000011.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BA00
Deuteranopia (green-blind)
#D6BF35
Tritanopia (blue-blind)
#D6B5A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c7c226;
/* rgb */ color: rgb(199, 194, 38);
/* oklch */ color: oklch(79.3% 0.162 107.6);
Tailwind
colors: {
  custom: {
    50: '#dcd470',
    500: '#c7c226',
    950: '#000000',
  },
}
SCSS
$custom: #c7c226;
$custom-light: #dcd470;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c226",
  "rgb": {
    "r": 199,
    "g": 194,
    "b": 38
  },
  "hsl": {
    "h": 58.137,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.79323,
    "c": 0.16155,
    "h": 107.6
  },
  "luminance": 0.50866
}

Semantic roles & 50–950 ramp

primary
#C7C226
secondary
#26286B
accent
#42EB3D
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161408
muted
#84837D

Preview Lab

Preview with #C7C226

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

Preview Lab → · Contrast checker → · Palette generator →

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