#7F8B14#7F8B14

#7F8B14 is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.7% C 0.132 H 115.8°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7F8B14
RGBrgb(127, 139, 20)
HSLhsl(66, 75%, 31%)
HSVhsv(66, 86%, 55%)
CMYKcmyk(8.6%, 0%, 85.6%, 45.5%)
CIE-LABlab(55.10, -18.75, 55.27)
CIE-LCHlch(55.10, 58.36, 108.74°)
OKLaboklab(60.65% -0.0577 0.1193)
OKLCHoklch(60.65% 0.132 115.8)
XYZxyz(18.1118, 23.0281, 4.1524)
Luminance0.2303 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8B14 #20148B
analogous
#8B5B14 #7F8B14 #438B14
triadic
#7F8B14 #147F8B #8B147F
tetradic
#7F8B14 #148B5B #20148B #8B1443
square
#7F8B14 #148B5B #20148B #8B1443
split-complementary
#7F8B14 #14438B #5B148B
monochromatic
#1D2005 #4E550C #7F8B14 #B0C11C #D1E237

Accessibility & contrast

On white

3.75
#7F8B14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#7F8B14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8B14
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8B14#FFFFFF#000000##000000
##7F8B141.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#958521
Tritanopia (blue-blind)
#888276
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7f8b14;
/* rgb */ color: rgb(127, 139, 20);
/* oklch */ color: oklch(60.7% 0.132 115.8);
Tailwind
colors: {
  custom: {
    50: '#a8ac60',
    500: '#7f8b14',
    950: '#000000',
  },
}
SCSS
$custom: #7f8b14;
$custom-light: #a8ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8b14",
  "rgb": {
    "r": 127,
    "g": 139,
    "b": 20
  },
  "hsl": {
    "h": 66.05,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.60654,
    "c": 0.13248,
    "h": 115.8
  },
  "luminance": 0.23028
}

Semantic roles & 50–950 ramp

primary
#7F8B14
secondary
#493CBF
accent
#36F149
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8B14

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

Preview Lab → · Contrast checker → · Palette generator →

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