#7F6515#7F6515

#7F6515 is a mid, moderate yellow. Relative luminance 0.139; OKLCH L 51.9% C 0.098 H 89.3°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7F6515
RGBrgb(127, 101, 21)
HSLhsl(45, 72%, 29%)
HSVhsv(45, 83%, 50%)
CMYKcmyk(0%, 20.5%, 83.5%, 50.2%)
CIE-LABlab(44.05, 2.30, 45.40)
CIE-LCHlch(44.05, 45.46, 87.10°)
OKLaboklab(51.86% 0.0012 0.0981)
OKLCHoklch(51.86% 0.098 89.3)
XYZxyz(13.5423, 13.8744, 2.6741)
Luminance0.1387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6515 #152F7F
analogous
#7F3015 #7F6515 #647F15
triadic
#7F6515 #157F65 #65157F
tetradic
#7F6515 #157F30 #152F7F #7F1564
square
#7F6515 #157F30 #152F7F #7F1564
split-complementary
#7F6515 #15647F #30157F
monochromatic
#1A1504 #4A3B0C #7F6515 #B48F1E #DDB331

Accessibility & contrast

On white

5.56
#7F6515 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7F6515 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6515
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6515#FFFFFF#000000##FFFFFF
##7F65151.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726403
Deuteranopia (green-blind)
#786B1A
Tritanopia (blue-blind)
#8A5B56
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7f6515;
/* rgb */ color: rgb(127, 101, 21);
/* oklch */ color: oklch(51.9% 0.098 89.3);
Tailwind
colors: {
  custom: {
    50: '#a8905a',
    500: '#7f6515',
    950: '#000000',
  },
}
SCSS
$custom: #7f6515;
$custom-light: #a8905a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6515",
  "rgb": {
    "r": 127,
    "g": 101,
    "b": 21
  },
  "hsl": {
    "h": 45.283,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51858,
    "c": 0.09812,
    "h": 89.3
  },
  "luminance": 0.13874
}

Semantic roles & 50–950 ramp

primary
#7F6515
secondary
#3C59B4
accent
#66EE39
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7F6515

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

Preview Lab → · Contrast checker → · Palette generator →

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