#7C8E17#7C8E17

#7C8E17 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.1% C 0.136 H 118.6°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7C8E17
RGBrgb(124, 142, 23)
HSLhsl(69, 72%, 32%)
HSVhsv(69, 84%, 56%)
CMYKcmyk(12.7%, 0%, 83.8%, 44.3%)
CIE-LABlab(55.78, -21.52, 54.98)
CIE-LCHlch(55.78, 59.04, 111.37°)
OKLaboklab(61.15% -0.065 0.1193)
OKLCHoklch(61.15% 0.136 118.6)
XYZxyz(18.1403, 23.6931, 4.4280)
Luminance0.2369 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E17 #29178E
analogous
#8E6517 #7C8E17 #408E17
triadic
#7C8E17 #177C8E #8E177C
tetradic
#7C8E17 #178E65 #29178E #8E1740
square
#7C8E17 #178E65 #29178E #8E1740
split-complementary
#7C8E17 #17408E #65178E
monochromatic
#202506 #4E590E #7C8E17 #AAC320 #C8E03F

Accessibility & contrast

On white

3.66
#7C8E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#7C8E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8E17
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8E17#FFFFFF#000000##000000
##7C8E171.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#848679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e17;
/* rgb */ color: rgb(124, 142, 23);
/* oklch */ color: oklch(61.1% 0.136 118.6);
Tailwind
colors: {
  custom: {
    50: '#a5af61',
    500: '#7c8e17',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e17;
$custom-light: #a5af61;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e17",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 23
  },
  "hsl": {
    "h": 69.076,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61145,
    "c": 0.13581,
    "h": 118.6
  },
  "luminance": 0.23693
}

Semantic roles & 50–950 ramp

primary
#7C8E17
secondary
#5440C0
accent
#39EF54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8E17

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

Preview Lab → · Contrast checker → · Palette generator →

#7C8E17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva