#C7C23B#C7C23B

#C7C23B is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.4% C 0.151 H 107.3°. Best body text is #000000 at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#C7C23B
RGBrgb(199, 194, 59)
HSLhsl(58, 56%, 51%)
HSVhsv(58, 70%, 78%)
CMYKcmyk(0%, 2.5%, 70.4%, 22%)
CIE-LABlab(76.70, -13.87, 64.78)
CIE-LCHlch(76.70, 66.25, 102.09°)
OKLaboklab(79.44% -0.0447 0.1438)
OKLCHoklch(79.44% 0.151 107.3)
XYZxyz(43.6361, 51.0429, 11.6905)
Luminance0.5104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C23B #3B40C7
analogous
#C77C3B #C7C23B #86C73B
triadic
#C7C23B #3BC7C2 #C23BC7
tetradic
#C7C23B #3BC77C #3B40C7 #C73B86
square
#C7C23B #3BC77C #3B40C7 #C73B86
split-complementary
#C7C23B #3B86C7 #7C3BC7
monochromatic
#69671E #99952C #C7C23B #D5D16B #E2E09A

Accessibility & contrast

On white

1.87
#C7C23B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.21
#C7C23B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C23B
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C23B#FFFFFF#000000##000000
##C7C23B1.001.8711.2111.21
#FFFFFF1.871.0021.0021.00
#00000011.2121.001.001.00
##00000011.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA24
Deuteranopia (green-blind)
#D5C045
Tritanopia (blue-blind)
#D5B5A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c7c23b;
/* rgb */ color: rgb(199, 194, 59);
/* oklch */ color: oklch(79.4% 0.151 107.3);
Tailwind
colors: {
  custom: {
    50: '#dcd47a',
    500: '#c7c23b',
    950: '#000000',
  },
}
SCSS
$custom: #c7c23b;
$custom-light: #dcd47a;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c23b",
  "rgb": {
    "r": 199,
    "g": 194,
    "b": 59
  },
  "hsl": {
    "h": 57.857,
    "s": 55.556,
    "l": 50.588
  },
  "oklch": {
    "l": 0.79442,
    "c": 0.15061,
    "h": 107.3
  },
  "luminance": 0.51041
}

Semantic roles & 50–950 ramp

primary
#C7C23B
secondary
#333573
accent
#4EDF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7C23B

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

Preview Lab → · Contrast checker → · Palette generator →

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