#7F8A13#7F8A13

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

Color values

HEX#7F8A13
RGBrgb(127, 138, 19)
HSLhsl(66, 76%, 31%)
HSVhsv(66, 86%, 54%)
CMYKcmyk(8%, 0%, 86.2%, 45.9%)
CIE-LABlab(54.80, -18.26, 55.26)
CIE-LCHlch(54.80, 58.20, 108.28°)
OKLaboklab(60.41% -0.0564 0.1191)
OKLCHoklch(60.41% 0.132 115.4)
XYZxyz(17.9590, 22.7363, 4.0585)
Luminance0.2274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A13 #1E138A
analogous
#8A5913 #7F8A13 #438A13
triadic
#7F8A13 #137F8A #8A137F
tetradic
#7F8A13 #138A59 #1E138A #8A1343
square
#7F8A13 #138A59 #1E138A #8A1343
split-complementary
#7F8A13 #13438A #59138A
monochromatic
#1C1E04 #4D540C #7F8A13 #B1C01A #D3E334

Accessibility & contrast

On white

3.79
#7F8A13 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8A13#FFFFFF#000000##000000
##7F8A131.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8a13;
/* rgb */ color: rgb(127, 138, 19);
/* oklch */ color: oklch(60.4% 0.132 115.4);
Tailwind
colors: {
  custom: {
    50: '#a8ac5f',
    500: '#7f8a13',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a13;
$custom-light: #a8ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a13",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 19
  },
  "hsl": {
    "h": 65.546,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.60411,
    "c": 0.13176,
    "h": 115.4
  },
  "luminance": 0.22736
}

Semantic roles & 50–950 ramp

primary
#7F8A13
secondary
#473ABE
accent
#35F247
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7F8A13

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

Preview Lab → · Contrast checker → · Palette generator →

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