#7F7917#7F7917

#7F7917 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.4% C 0.112 H 105.8°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7F7917
RGBrgb(127, 121, 23)
HSLhsl(57, 69%, 29%)
HSVhsv(57, 82%, 50%)
CMYKcmyk(0%, 4.7%, 81.9%, 50.2%)
CIE-LABlab(49.80, -9.00, 49.83)
CIE-LCHlch(49.80, 50.64, 100.24°)
OKLaboklab(56.41% -0.0305 0.1081)
OKLCHoklch(56.41% 0.112 105.8)
XYZxyz(15.7451, 18.2492, 3.5035)
Luminance0.1825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7917 #171D7F
analogous
#7F4517 #7F7917 #517F17
triadic
#7F7917 #177F79 #79177F
tetradic
#7F7917 #177F45 #171D7F #7F1751
square
#7F7917 #177F45 #171D7F #7F1751
split-complementary
#7F7917 #17517F #45177F
monochromatic
#1A1905 #4B480E #7F7917 #B3AA20 #DBD136

Accessibility & contrast

On white

4.52
#7F7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7F7917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7917
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7917#FFFFFF#000000##000000
##7F79171.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#87781F
Tritanopia (blue-blind)
#897067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f7917;
/* rgb */ color: rgb(127, 121, 23);
/* oklch */ color: oklch(56.4% 0.112 105.8);
Tailwind
colors: {
  custom: {
    50: '#a89f5e',
    500: '#7f7917',
    950: '#000000',
  },
}
SCSS
$custom: #7f7917;
$custom-light: #a89f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7917",
  "rgb": {
    "r": 127,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 56.538,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56414,
    "c": 0.11231,
    "h": 105.8
  },
  "luminance": 0.18249
}

Semantic roles & 50–950 ramp

primary
#7F7917
secondary
#3E45B4
accent
#46EC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7917

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

Preview Lab → · Contrast checker → · Palette generator →

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