#7F8A15#7F8A15

#7F8A15 is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.131 H 115.4°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7F8A15
RGBrgb(127, 138, 21)
HSLhsl(66, 74%, 31%)
HSVhsv(66, 85%, 54%)
CMYKcmyk(8%, 0%, 84.8%, 45.9%)
CIE-LABlab(54.81, -18.19, 54.76)
CIE-LCHlch(54.81, 57.71, 108.38°)
OKLaboklab(60.42% -0.0561 0.1183)
OKLCHoklch(60.42% 0.131 115.4)
XYZxyz(17.9768, 22.7434, 4.1523)
Luminance0.2274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A15 #20158A
analogous
#8A5A15 #7F8A15 #448A15
triadic
#7F8A15 #157F8A #8A157F
tetradic
#7F8A15 #158A5A #20158A #8A1544
square
#7F8A15 #158A5A #20158A #8A1544
split-complementary
#7F8A15 #15448A #5A158A
monochromatic
#1D2005 #4E550D #7F8A15 #B0BF1D #D1E139

Accessibility & contrast

On white

3.78
#7F8A15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7F8A15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A15
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A15#FFFFFF#000000##000000
##7F8A151.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#948422
Tritanopia (blue-blind)
#888175
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a15;
/* rgb */ color: rgb(127, 138, 21);
/* oklch */ color: oklch(60.4% 0.131 115.4);
Tailwind
colors: {
  custom: {
    50: '#a8ac60',
    500: '#7f8a15',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a15;
$custom-light: #a8ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a15",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 21
  },
  "hsl": {
    "h": 65.641,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.60419,
    "c": 0.13097,
    "h": 115.4
  },
  "luminance": 0.22743
}

Semantic roles & 50–950 ramp

primary
#7F8A15
secondary
#493DBE
accent
#38F049
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8A15

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

Preview Lab → · Contrast checker → · Palette generator →

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