#7F6917#7F6917

#7F6917 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.8% C 0.099 H 92.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7F6917
RGBrgb(127, 105, 23)
HSLhsl(47, 69%, 29%)
HSVhsv(47, 82%, 50%)
CMYKcmyk(0%, 17.3%, 81.9%, 50.2%)
CIE-LABlab(45.19, 0.05, 45.72)
CIE-LCHlch(45.19, 45.72, 89.93°)
OKLaboklab(52.76% -0.005 0.0992)
OKLCHoklch(52.76% 0.099 92.9)
XYZxyz(13.9594, 14.6779, 2.9083)
Luminance0.1468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6917 #172D7F
analogous
#7F3517 #7F6917 #617F17
triadic
#7F6917 #177F69 #69177F
tetradic
#7F6917 #177F35 #172D7F #7F1761
square
#7F6917 #177F35 #172D7F #7F1761
split-complementary
#7F6917 #17617F #35177F
monochromatic
#1A1505 #4B3E0E #7F6917 #B39420 #DBB836

Accessibility & contrast

On white

5.34
#7F6917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7F6917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6917
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6917#FFFFFF#000000##FFFFFF
##7F69171.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#7B6E1C
Tritanopia (blue-blind)
#8A605A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f6917;
/* rgb */ color: rgb(127, 105, 23);
/* oklch */ color: oklch(52.8% 0.099 92.9);
Tailwind
colors: {
  custom: {
    50: '#a8935c',
    500: '#7f6917',
    950: '#000000',
  },
}
SCSS
$custom: #7f6917;
$custom-light: #a8935c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6917",
  "rgb": {
    "r": 127,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 47.308,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52758,
    "c": 0.09936,
    "h": 92.9
  },
  "luminance": 0.14677
}

Semantic roles & 50–950 ramp

primary
#7F6917
secondary
#3E57B4
accent
#61EC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F6917

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

Preview Lab → · Contrast checker → · Palette generator →

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