#7F7517#7F7517

#7F7517 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.5% C 0.109 H 102.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7F7517
RGBrgb(127, 117, 23)
HSLhsl(54, 69%, 29%)
HSVhsv(54, 82%, 50%)
CMYKcmyk(0%, 7.9%, 81.9%, 50.2%)
CIE-LABlab(48.63, -6.78, 48.80)
CIE-LCHlch(48.63, 49.27, 97.91°)
OKLaboklab(55.49% -0.0243 0.1059)
OKLCHoklch(55.49% 0.109 102.9)
XYZxyz(15.2691, 17.2971, 3.3448)
Luminance0.1730 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7517 #17217F
analogous
#7F4117 #7F7517 #557F17
triadic
#7F7517 #177F75 #75177F
tetradic
#7F7517 #177F41 #17217F #7F1755
square
#7F7517 #177F41 #17217F #7F1755
split-complementary
#7F7517 #17557F #41177F
monochromatic
#1A1805 #4B450E #7F7517 #B3A520 #DBCB36

Accessibility & contrast

On white

4.71
#7F7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7F7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7517
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7517#FFFFFF#000000##FFFFFF
##7F75171.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#84751F
Tritanopia (blue-blind)
#896C64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f7517;
/* rgb */ color: rgb(127, 117, 23);
/* oklch */ color: oklch(55.5% 0.109 102.9);
Tailwind
colors: {
  custom: {
    50: '#a89c5e',
    500: '#7f7517',
    950: '#000000',
  },
}
SCSS
$custom: #7f7517;
$custom-light: #a89c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7517",
  "rgb": {
    "r": 127,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 54.231,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.55486,
    "c": 0.10862,
    "h": 102.9
  },
  "luminance": 0.17296
}

Semantic roles & 50–950 ramp

primary
#7F7517
secondary
#3E4AB4
accent
#4DEC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7517

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

Preview Lab → · Contrast checker → · Palette generator →

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