#7C8D17#7C8D17

#7C8D17 is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 60.9% C 0.135 H 118.2°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7C8D17
RGBrgb(124, 141, 23)
HSLhsl(69, 72%, 32%)
HSVhsv(69, 84%, 55%)
CMYKcmyk(12.1%, 0%, 83.7%, 44.7%)
CIE-LABlab(55.48, -21.01, 54.72)
CIE-LCHlch(55.48, 58.61, 111.00°)
OKLaboklab(60.9% -0.0636 0.1187)
OKLCHoklch(60.9% 0.135 118.2)
XYZxyz(17.9922, 23.3969, 4.3787)
Luminance0.2340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D17 #28178D
analogous
#8D6317 #7C8D17 #418D17
triadic
#7C8D17 #177C8D #8D177C
tetradic
#7C8D17 #178D63 #28178D #8D1741
square
#7C8D17 #178D63 #28178D #8D1741
split-complementary
#7C8D17 #17418D #63178D
monochromatic
#1F2406 #4E580E #7C8D17 #AAC220 #C8E03F

Accessibility & contrast

On white

3.70
#7C8D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#7C8D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D17
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D17#FFFFFF#000000##000000
##7C8D171.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958524
Tritanopia (blue-blind)
#848578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d17;
/* rgb */ color: rgb(124, 141, 23);
/* oklch */ color: oklch(60.9% 0.135 118.2);
Tailwind
colors: {
  custom: {
    50: '#a5ae61',
    500: '#7c8d17',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d17;
$custom-light: #a5ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d17",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 68.644,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60904,
    "c": 0.13465,
    "h": 118.2
  },
  "luminance": 0.23397
}

Semantic roles & 50–950 ramp

primary
#7C8D17
secondary
#5240C0
accent
#39EF53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8D17

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

Preview Lab → · Contrast checker → · Palette generator →

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