#7F7515#7F7515

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

Color values

HEX#7F7515
RGBrgb(127, 117, 21)
HSLhsl(54, 72%, 29%)
HSVhsv(54, 83%, 50%)
CMYKcmyk(0%, 7.9%, 83.5%, 50.2%)
CIE-LABlab(48.62, -6.85, 49.42)
CIE-LCHlch(48.62, 49.89, 97.89°)
OKLaboklab(55.48% -0.0247 0.1068)
OKLCHoklch(55.48% 0.11 103)
XYZxyz(15.2498, 17.2894, 3.2432)
Luminance0.1729 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7515 #151F7F
analogous
#7F4015 #7F7515 #547F15
triadic
#7F7515 #157F75 #75157F
tetradic
#7F7515 #157F40 #151F7F #7F1554
square
#7F7515 #157F40 #151F7F #7F1554
split-complementary
#7F7515 #15547F #40157F
monochromatic
#1A1804 #4A450C #7F7515 #B4A51E #DDCD31

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7515#FFFFFF#000000##FFFFFF
##7F75151.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)
#84751D
Tritanopia (blue-blind)
#896C64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f7515;
/* rgb */ color: rgb(127, 117, 21);
/* oklch */ color: oklch(55.5% 0.110 103.0);
Tailwind
colors: {
  custom: {
    50: '#a89c5d',
    500: '#7f7515',
    950: '#000000',
  },
}
SCSS
$custom: #7f7515;
$custom-light: #a89c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7515",
  "rgb": {
    "r": 127,
    "g": 117,
    "b": 21
  },
  "hsl": {
    "h": 54.34,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.55476,
    "c": 0.10961,
    "h": 103
  },
  "luminance": 0.17289
}

Semantic roles & 50–950 ramp

primary
#7F7515
secondary
#3C47B4
accent
#4BEE39
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7515

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

Preview Lab → · Contrast checker → · Palette generator →

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