#7C8817#7C8817

#7C8817 is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 59.7% C 0.129 H 116.0°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7C8817
RGBrgb(124, 136, 23)
HSLhsl(66, 71%, 31%)
HSVhsv(66, 83%, 53%)
CMYKcmyk(8.8%, 0%, 83.1%, 46.7%)
CIE-LABlab(53.98, -18.43, 53.41)
CIE-LCHlch(53.98, 56.50, 109.04°)
OKLaboklab(59.7% -0.0565 0.1159)
OKLCHoklch(59.7% 0.129 116)
XYZxyz(17.2715, 21.9555, 4.1384)
Luminance0.2195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8817 #231788
analogous
#885B17 #7C8817 #438817
triadic
#7C8817 #177C88 #88177C
tetradic
#7C8817 #17885B #231788 #881743
square
#7C8817 #17885B #231788 #881743
split-complementary
#7C8817 #174388 #5B1788
monochromatic
#1D1F05 #4C540E #7C8817 #ACBC20 #CDDE3B

Accessibility & contrast

On white

3.90
#7C8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#7C8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8817
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8817#FFFFFF#000000##000000
##7C88171.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#848074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7c8817;
/* rgb */ color: rgb(124, 136, 23);
/* oklch */ color: oklch(59.7% 0.129 116.0);
Tailwind
colors: {
  custom: {
    50: '#a5aa60',
    500: '#7c8817',
    950: '#000000',
  },
}
SCSS
$custom: #7c8817;
$custom-light: #a5aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8817",
  "rgb": {
    "r": 124,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 66.372,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59698,
    "c": 0.12894,
    "h": 116
  },
  "luminance": 0.21955
}

Semantic roles & 50–950 ramp

primary
#7C8817
secondary
#4C3FBC
accent
#3AEE4D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8817

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

Preview Lab → · Contrast checker → · Palette generator →

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