#7F8B19#7F8B19

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

Color values

HEX#7F8B19
RGBrgb(127, 139, 25)
HSLhsl(66, 70%, 32%)
HSVhsv(66, 82%, 55%)
CMYKcmyk(8.6%, 0%, 82%, 45.5%)
CIE-LABlab(55.12, -18.57, 53.93)
CIE-LCHlch(55.12, 57.04, 109.00°)
OKLaboklab(60.68% -0.0569 0.1173)
OKLCHoklch(60.68% 0.13 115.9)
XYZxyz(18.1610, 23.0477, 4.4115)
Luminance0.2305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8B19 #25198B
analogous
#8B5E19 #7F8B19 #468B19
triadic
#7F8B19 #197F8B #8B197F
tetradic
#7F8B19 #198B5E #25198B #8B1946
square
#7F8B19 #198B5E #25198B #8B1946
split-complementary
#7F8B19 #19468B #5E198B
monochromatic
#202306 #505710 #7F8B19 #AEBF22 #CDDD41

Accessibility & contrast

On white

3.74
#7F8B19 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8B19#FFFFFF#000000##000000
##7F8B191.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8b19;
/* rgb */ color: rgb(127, 139, 25);
/* oklch */ color: oklch(60.7% 0.130 115.9);
Tailwind
colors: {
  custom: {
    50: '#a8ac62',
    500: '#7f8b19',
    950: '#000000',
  },
}
SCSS
$custom: #7f8b19;
$custom-light: #a8ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8b19",
  "rgb": {
    "r": 127,
    "g": 139,
    "b": 25
  },
  "hsl": {
    "h": 66.316,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60677,
    "c": 0.13034,
    "h": 115.9
  },
  "luminance": 0.23047
}

Semantic roles & 50–950 ramp

primary
#7F8B19
secondary
#4F42BE
accent
#3BEC4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8B19

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

Preview Lab → · Contrast checker → · Palette generator →

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