#7F8319#7F8319

#7F8319 is a mid, vivid yellow. Relative luminance 0.208; OKLCH L 58.8% C 0.121 H 111.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7F8319
RGBrgb(127, 131, 25)
HSLhsl(62, 68%, 31%)
HSVhsv(62, 81%, 51%)
CMYKcmyk(3.1%, 0%, 80.9%, 48.6%)
CIE-LABlab(52.75, -14.36, 51.83)
CIE-LCHlch(52.75, 53.78, 105.49°)
OKLaboklab(58.77% -0.0452 0.1128)
OKLCHoklch(58.77% 0.122 111.9)
XYZxyz(17.0448, 20.8153, 4.0394)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8319 #1D1983
analogous
#835219 #7F8319 #4A8319
triadic
#7F8319 #197F83 #83197F
tetradic
#7F8319 #198352 #1D1983 #83194A
square
#7F8319 #198352 #1D1983 #83194A
split-complementary
#7F8319 #194A83 #521983
monochromatic
#1B1C05 #4D500F #7F8319 #B1B623 #D4DA3D

Accessibility & contrast

On white

4.07
#7F8319 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#7F8319 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8319
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8319#FFFFFF#000000##000000
##7F83191.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8E7F23
Tritanopia (blue-blind)
#887A70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7f8319;
/* rgb */ color: rgb(127, 131, 25);
/* oklch */ color: oklch(58.8% 0.121 111.9);
Tailwind
colors: {
  custom: {
    50: '#a7a660',
    500: '#7f8319',
    950: '#000000',
  },
}
SCSS
$custom: #7f8319;
$custom-light: #a7a660;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8319",
  "rgb": {
    "r": 127,
    "g": 131,
    "b": 25
  },
  "hsl": {
    "h": 62.264,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58773,
    "c": 0.1215,
    "h": 111.9
  },
  "luminance": 0.20815
}

Semantic roles & 50–950 ramp

primary
#7F8319
secondary
#4541B7
accent
#3DEB44
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F8319

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

Preview Lab → · Contrast checker → · Palette generator →

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