#7F7817#7F7817

#7F7817 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.111 H 105.1°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7F7817
RGBrgb(127, 120, 23)
HSLhsl(56, 69%, 29%)
HSVhsv(56, 82%, 50%)
CMYKcmyk(0%, 5.5%, 81.9%, 50.2%)
CIE-LABlab(49.51, -8.45, 49.57)
CIE-LCHlch(49.51, 50.29, 99.68°)
OKLaboklab(56.18% -0.029 0.1075)
OKLCHoklch(56.18% 0.111 105.1)
XYZxyz(15.6242, 18.0075, 3.4632)
Luminance0.1801 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7817 #171E7F
analogous
#7F4417 #7F7817 #527F17
triadic
#7F7817 #177F78 #78177F
tetradic
#7F7817 #177F44 #171E7F #7F1752
square
#7F7817 #177F44 #171E7F #7F1752
split-complementary
#7F7817 #17527F #44177F
monochromatic
#1A1805 #4B470E #7F7817 #B3A920 #DBCF36

Accessibility & contrast

On white

4.56
#7F7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7F7817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7817
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7817#FFFFFF#000000##000000
##7F78171.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#86781F
Tritanopia (blue-blind)
#896F66
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f7817;
/* rgb */ color: rgb(127, 120, 23);
/* oklch */ color: oklch(56.2% 0.111 105.1);
Tailwind
colors: {
  custom: {
    50: '#a89e5e',
    500: '#7f7817',
    950: '#000000',
  },
}
SCSS
$custom: #7f7817;
$custom-light: #a89e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7817",
  "rgb": {
    "r": 127,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 55.962,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56181,
    "c": 0.11136,
    "h": 105.1
  },
  "luminance": 0.18007
}

Semantic roles & 50–950 ramp

primary
#7F7817
secondary
#3E46B4
accent
#48EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7817

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

Preview Lab → · Contrast checker → · Palette generator →

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