#C7B23A#C7B23A

#C7B23A is a light, vivid yellow. Relative luminance 0.443; OKLCH L 76.0% C 0.137 H 99.1°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#C7B23A
RGBrgb(199, 178, 58)
HSLhsl(51, 56%, 50%)
HSVhsv(51, 71%, 78%)
CMYKcmyk(0%, 10.6%, 70.9%, 22%)
CIE-LABlab(72.42, -5.69, 60.94)
CIE-LCHlch(72.42, 61.20, 95.33°)
OKLaboklab(76.03% -0.0217 0.1355)
OKLCHoklch(76.03% 0.137 99.1)
XYZxyz(40.2392, 44.2903, 10.4315)
Luminance0.4429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7B23A #3A4FC7
analogous
#C76C3A #C7B23A #95C73A
triadic
#C7B23A #3AC7B2 #B23AC7
tetradic
#C7B23A #3AC76C #3A4FC7 #C73A95
square
#C7B23A #3AC76C #3A4FC7 #C73A95
split-complementary
#C7B23A #3A95C7 #6C3AC7
monochromatic
#695E1E #98882B #C7B23A #D5C56A #E2D799

Accessibility & contrast

On white

2.13
#C7B23A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.86
#C7B23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7B23A
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7B23A#FFFFFF#000000##000000
##C7B23A1.002.139.869.86
#FFFFFF2.131.0021.0021.00
#0000009.8621.001.001.00
##0000009.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD28
Deuteranopia (green-blind)
#C9B541
Tritanopia (blue-blind)
#D6A59A
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #c7b23a;
/* rgb */ color: rgb(199, 178, 58);
/* oklch */ color: oklch(76.0% 0.137 99.1);
Tailwind
colors: {
  custom: {
    50: '#dcc878',
    500: '#c7b23a',
    950: '#000000',
  },
}
SCSS
$custom: #c7b23a;
$custom-light: #dcc878;
$custom-dark: #000000;
JSON
{
  "hex": "#c7b23a",
  "rgb": {
    "r": 199,
    "g": 178,
    "b": 58
  },
  "hsl": {
    "h": 51.064,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.76034,
    "c": 0.13725,
    "h": 99.1
  },
  "luminance": 0.44288
}

Semantic roles & 50–950 ramp

primary
#C7B23A
secondary
#8F98CE
accent
#5FDF49
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#151309
muted
#84827B

Preview Lab

Preview with #C7B23A

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

Preview Lab → · Contrast checker → · Palette generator →

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