#C7C126#C7C126

#C7C126 is a light, vivid yellow. Relative luminance 0.504; OKLCH L 79.1% C 0.161 H 107.2°. Best body text is #000000 at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#C7C126
RGBrgb(199, 193, 38)
HSLhsl(58, 68%, 46%)
HSVhsv(58, 81%, 78%)
CMYKcmyk(0%, 3%, 80.9%, 22%)
CIE-LABlab(76.33, -14.21, 71.10)
CIE-LCHlch(76.33, 72.51, 101.30°)
OKLaboklab(79.11% -0.0474 0.1535)
OKLCHoklch(79.11% 0.161 107.2)
XYZxyz(42.9748, 50.4235, 9.3023)
Luminance0.5042 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C126 #262CC7
analogous
#C77126 #C7C126 #7DC726
triadic
#C7C126 #26C7C1 #C126C7
tetradic
#C7C126 #26C771 #262CC7 #C7267D
square
#C7C126 #26C771 #262CC7 #C7267D
split-complementary
#C7C126 #267DC7 #7126C7
monochromatic
#605D12 #948F1C #C7C126 #DDD84D #E7E381

Accessibility & contrast

On white

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

On black

11.08
#C7C126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C126
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C126#FFFFFF#000000##000000
##C7C1261.001.8911.0811.08
#FFFFFF1.891.0021.0021.00
#00000011.0821.001.001.00
##00000011.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2B900
Deuteranopia (green-blind)
#D5BF34
Tritanopia (blue-blind)
#D6B4A5
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c7c126;
/* rgb */ color: rgb(199, 193, 38);
/* oklch */ color: oklch(79.1% 0.161 107.2);
Tailwind
colors: {
  custom: {
    50: '#dcd370',
    500: '#c7c126',
    950: '#000000',
  },
}
SCSS
$custom: #c7c126;
$custom-light: #dcd370;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c126",
  "rgb": {
    "r": 199,
    "g": 193,
    "b": 38
  },
  "hsl": {
    "h": 57.764,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.79107,
    "c": 0.16065,
    "h": 107.2
  },
  "luminance": 0.50422
}

Semantic roles & 50–950 ramp

primary
#C7C126
secondary
#26296B
accent
#43EB3D
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161408
muted
#84837D

Preview Lab

Preview with #C7C126

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

Preview Lab → · Contrast checker → · Palette generator →

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