#7F8E18#7F8E18

#7F8E18 is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.4% C 0.134 H 117.2°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7F8E18
RGBrgb(127, 142, 24)
HSLhsl(68, 71%, 33%)
HSVhsv(68, 83%, 56%)
CMYKcmyk(10.6%, 0%, 83.1%, 44.3%)
CIE-LABlab(56.01, -20.16, 55.00)
CIE-LCHlch(56.01, 58.57, 110.13°)
OKLaboklab(61.39% -0.0613 0.1194)
OKLCHoklch(61.39% 0.134 117.2)
XYZxyz(18.5908, 23.9242, 4.5025)
Luminance0.2392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8E18 #27188E
analogous
#8E6218 #7F8E18 #448E18
triadic
#7F8E18 #187F8E #8E187F
tetradic
#7F8E18 #188E62 #27188E #8E1844
square
#7F8E18 #188E62 #27188E #8E1844
split-complementary
#7F8E18 #18448E #62188E
monochromatic
#212506 #505A0F #7F8E18 #AEC221 #CBDF41

Accessibility & contrast

On white

3.63
#7F8E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#7F8E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8E18
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8E18#FFFFFF#000000##000000
##7F8E181.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8e18;
/* rgb */ color: rgb(127, 142, 24);
/* oklch */ color: oklch(61.4% 0.134 117.2);
Tailwind
colors: {
  custom: {
    50: '#a8af62',
    500: '#7f8e18',
    950: '#000000',
  },
}
SCSS
$custom: #7f8e18;
$custom-light: #a8af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8e18",
  "rgb": {
    "r": 127,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 67.627,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61391,
    "c": 0.13419,
    "h": 117.2
  },
  "luminance": 0.23924
}

Semantic roles & 50–950 ramp

primary
#7F8E18
secondary
#5242C0
accent
#3AEE51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8E18

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

Preview Lab → · Contrast checker → · Palette generator →

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