#7F8D18#7F8D18

#7F8D18 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.2% C 0.133 H 116.8°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7F8D18
RGBrgb(127, 141, 24)
HSLhsl(67, 71%, 32%)
HSVhsv(67, 83%, 55%)
CMYKcmyk(9.9%, 0%, 83%, 44.7%)
CIE-LABlab(55.71, -19.64, 54.74)
CIE-LCHlch(55.71, 58.15, 109.74°)
OKLaboklab(61.15% -0.0599 0.1188)
OKLCHoklch(61.15% 0.133 116.8)
XYZxyz(18.4426, 23.6280, 4.4531)
Luminance0.2363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D18 #26188D
analogous
#8D6018 #7F8D18 #458D18
triadic
#7F8D18 #187F8D #8D187F
tetradic
#7F8D18 #188D60 #26188D #8D1845
square
#7F8D18 #188D60 #26188D #8D1845
split-complementary
#7F8D18 #18458D #60188D
monochromatic
#212406 #50590F #7F8D18 #AEC121 #CCDF41

Accessibility & contrast

On white

3.67
#7F8D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#7F8D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D18
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D18#FFFFFF#000000##000000
##7F8D181.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8d18;
/* rgb */ color: rgb(127, 141, 24);
/* oklch */ color: oklch(61.2% 0.133 116.8);
Tailwind
colors: {
  custom: {
    50: '#a8ae61',
    500: '#7f8d18',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d18;
$custom-light: #a8ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d18",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 67.179,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61151,
    "c": 0.13306,
    "h": 116.8
  },
  "luminance": 0.23628
}

Semantic roles & 50–950 ramp

primary
#7F8D18
secondary
#5142BF
accent
#3AEE50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8D18

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

Preview Lab → · Contrast checker → · Palette generator →

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