#7F7019#7F7019

#7F7019 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.4% C 0.103 H 98.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7F7019
RGBrgb(127, 112, 25)
HSLhsl(51, 67%, 30%)
HSVhsv(51, 80%, 50%)
CMYKcmyk(0%, 11.8%, 80.3%, 50.2%)
CIE-LABlab(47.20, -3.88, 46.83)
CIE-LCHlch(47.20, 46.99, 94.74°)
OKLaboklab(54.35% -0.0159 0.1021)
OKLCHoklch(54.35% 0.103 98.9)
XYZxyz(14.7228, 16.1713, 3.2654)
Luminance0.1617 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7019 #19287F
analogous
#7F3D19 #7F7019 #5B7F19
triadic
#7F7019 #197F70 #70197F
tetradic
#7F7019 #197F3D #19287F #7F195B
square
#7F7019 #197F3D #19287F #7F195B
split-complementary
#7F7019 #195B7F #3D197F
monochromatic
#1A1705 #4C430F #7F7019 #B29D23 #D8C13A

Accessibility & contrast

On white

4.96
#7F7019 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7F7019 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7019
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7019#FFFFFF#000000##FFFFFF
##7F70191.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D05
Deuteranopia (green-blind)
#80721F
Tritanopia (blue-blind)
#8A6760
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f7019;
/* rgb */ color: rgb(127, 112, 25);
/* oklch */ color: oklch(54.4% 0.103 98.9);
Tailwind
colors: {
  custom: {
    50: '#a8985e',
    500: '#7f7019',
    950: '#000000',
  },
}
SCSS
$custom: #7f7019;
$custom-light: #a8985e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7019",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 25
  },
  "hsl": {
    "h": 51.176,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54351,
    "c": 0.1033,
    "h": 98.9
  },
  "luminance": 0.16171
}

Semantic roles & 50–950 ramp

primary
#7F7019
secondary
#4151B3
accent
#57EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7F7019

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

Preview Lab → · Contrast checker → · Palette generator →

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