#7F8F19#7F8F19

#7F8F19 is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.6% C 0.135 H 117.6°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7F8F19
RGBrgb(127, 143, 25)
HSLhsl(68, 70%, 33%)
HSVhsv(68, 83%, 56%)
CMYKcmyk(11.2%, 0%, 82.5%, 43.9%)
CIE-LABlab(56.31, -20.63, 54.98)
CIE-LCHlch(56.31, 58.73, 110.57°)
OKLaboklab(61.64% -0.0625 0.1195)
OKLCHoklch(61.64% 0.135 117.6)
XYZxyz(18.7508, 24.2273, 4.6081)
Luminance0.2423 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8F19 #29198F
analogous
#8F6419 #7F8F19 #448F19
triadic
#7F8F19 #197F8F #8F197F
tetradic
#7F8F19 #198F64 #29198F #8F1944
square
#7F8F19 #198F64 #29198F #8F1944
split-complementary
#7F8F19 #19448F #64198F
monochromatic
#222707 #515B10 #7F8F19 #ADC322 #C9DE44

Accessibility & contrast

On white

3.59
#7F8F19 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#7F8F19 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8F19
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8F19#FFFFFF#000000##000000
##7F8F191.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#988825
Tritanopia (blue-blind)
#87877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7f8f19;
/* rgb */ color: rgb(127, 143, 25);
/* oklch */ color: oklch(61.6% 0.135 117.6);
Tailwind
colors: {
  custom: {
    50: '#a8af62',
    500: '#7f8f19',
    950: '#000000',
  },
}
SCSS
$custom: #7f8f19;
$custom-light: #a8af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8f19",
  "rgb": {
    "r": 127,
    "g": 143,
    "b": 25
  },
  "hsl": {
    "h": 68.136,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.61636,
    "c": 0.1349,
    "h": 117.6
  },
  "luminance": 0.24227
}

Semantic roles & 50–950 ramp

primary
#7F8F19
secondary
#5544BF
accent
#3BED53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8F19

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

Preview Lab → · Contrast checker → · Palette generator →

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