#7F7317#7F7317

#7F7317 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 55.0% C 0.107 H 101.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7F7317
RGBrgb(127, 115, 23)
HSLhsl(53, 69%, 29%)
HSVhsv(53, 82%, 50%)
CMYKcmyk(0%, 9.4%, 81.9%, 50.2%)
CIE-LABlab(48.05, -5.66, 48.28)
CIE-LCHlch(48.05, 48.61, 96.68°)
OKLaboklab(55.03% -0.0211 0.1048)
OKLCHoklch(55.03% 0.107 101.4)
XYZxyz(15.0385, 16.8361, 3.2680)
Luminance0.1683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7317 #17237F
analogous
#7F3F17 #7F7317 #577F17
triadic
#7F7317 #177F73 #73177F
tetradic
#7F7317 #177F3F #17237F #7F1757
square
#7F7317 #177F3F #17237F #7F1757
split-complementary
#7F7317 #17577F #3F177F
monochromatic
#1A1705 #4B440E #7F7317 #B3A220 #DBC836

Accessibility & contrast

On white

4.81
#7F7317 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7F7317 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7317
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7317#FFFFFF#000000##FFFFFF
##7F73171.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#82741E
Tritanopia (blue-blind)
#896A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f7317;
/* rgb */ color: rgb(127, 115, 23);
/* oklch */ color: oklch(55.0% 0.107 101.4);
Tailwind
colors: {
  custom: {
    50: '#a89a5d',
    500: '#7f7317',
    950: '#000000',
  },
}
SCSS
$custom: #7f7317;
$custom-light: #a89a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7317",
  "rgb": {
    "r": 127,
    "g": 115,
    "b": 23
  },
  "hsl": {
    "h": 53.077,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.55026,
    "c": 0.10687,
    "h": 101.4
  },
  "luminance": 0.16835
}

Semantic roles & 50–950 ramp

primary
#7F7317
secondary
#3E4CB4
accent
#50EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7317

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

Preview Lab → · Contrast checker → · Palette generator →

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