#7F8519#7F8519

#7F8519 is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.2% C 0.124 H 112.9°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7F8519
RGBrgb(127, 133, 25)
HSLhsl(63, 68%, 31%)
HSVhsv(63, 81%, 52%)
CMYKcmyk(4.5%, 0%, 81.2%, 47.8%)
CIE-LABlab(53.34, -15.43, 52.35)
CIE-LCHlch(53.34, 54.58, 106.42°)
OKLaboklab(59.25% -0.0482 0.1139)
OKLCHoklch(59.25% 0.124 112.9)
XYZxyz(17.3160, 21.3577, 4.1298)
Luminance0.2136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8519 #1F1985
analogous
#855519 #7F8519 #498519
triadic
#7F8519 #197F85 #85197F
tetradic
#7F8519 #198555 #1F1985 #851949
square
#7F8519 #198555 #1F1985 #851949
split-complementary
#7F8519 #194985 #551985
monochromatic
#1D1E06 #4E510F #7F8519 #B0B923 #D2DB3E

Accessibility & contrast

On white

3.98
#7F8519 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7F8519 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8519
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8519#FFFFFF#000000##000000
##7F85191.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#908023
Tritanopia (blue-blind)
#887C71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7f8519;
/* rgb */ color: rgb(127, 133, 25);
/* oklch */ color: oklch(59.2% 0.124 112.9);
Tailwind
colors: {
  custom: {
    50: '#a7a861',
    500: '#7f8519',
    950: '#000000',
  },
}
SCSS
$custom: #7f8519;
$custom-light: #a7a861;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8519",
  "rgb": {
    "r": 127,
    "g": 133,
    "b": 25
  },
  "hsl": {
    "h": 63.333,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59247,
    "c": 0.12367,
    "h": 112.9
  },
  "luminance": 0.21357
}

Semantic roles & 50–950 ramp

primary
#7F8519
secondary
#4841B9
accent
#3DEB46
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F8519

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

Preview Lab → · Contrast checker → · Palette generator →

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