#7F8D19#7F8D19

#7F8D19 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.2% C 0.133 H 116.8°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7F8D19
RGBrgb(127, 141, 25)
HSLhsl(67, 70%, 33%)
HSVhsv(67, 82%, 55%)
CMYKcmyk(9.9%, 0%, 82.3%, 44.7%)
CIE-LABlab(55.72, -19.61, 54.46)
CIE-LCHlch(55.72, 57.88, 109.80°)
OKLaboklab(61.16% -0.0597 0.1184)
OKLCHoklch(61.16% 0.133 116.8)
XYZxyz(18.4532, 23.6322, 4.5089)
Luminance0.2363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D19 #27198D
analogous
#8D6119 #7F8D19 #458D19
triadic
#7F8D19 #197F8D #8D197F
tetradic
#7F8D19 #198D61 #27198D #8D1945
square
#7F8D19 #198D61 #27198D #8D1945
split-complementary
#7F8D19 #19458D #61198D
monochromatic
#212507 #505910 #7F8D19 #AEC122 #CBDE43

Accessibility & contrast

On white

3.67
#7F8D19 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#7F8D19 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D19
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D19#FFFFFF#000000##000000
##7F8D191.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#968625
Tritanopia (blue-blind)
#888578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7f8d19;
/* rgb */ color: rgb(127, 141, 25);
/* oklch */ color: oklch(61.2% 0.133 116.8);
Tailwind
colors: {
  custom: {
    50: '#a8ae62',
    500: '#7f8d19',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d19;
$custom-light: #a8ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d19",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 25
  },
  "hsl": {
    "h": 67.241,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61156,
    "c": 0.1326,
    "h": 116.8
  },
  "luminance": 0.23632
}

Semantic roles & 50–950 ramp

primary
#7F8D19
secondary
#5243BF
accent
#3BED51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8D19

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

Preview Lab → · Contrast checker → · Palette generator →

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