#7F6815#7F6815

#7F6815 is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.5% C 0.100 H 92.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7F6815
RGBrgb(127, 104, 21)
HSLhsl(47, 72%, 29%)
HSVhsv(47, 83%, 50%)
CMYKcmyk(0%, 18.1%, 83.5%, 50.2%)
CIE-LABlab(44.90, 0.56, 46.15)
CIE-LCHlch(44.90, 46.15, 89.31°)
OKLaboklab(52.52% -0.0037 0.0997)
OKLCHoklch(52.52% 0.1 92.2)
XYZxyz(13.8389, 14.4677, 2.7730)
Luminance0.1447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6815 #152C7F
analogous
#7F3315 #7F6815 #617F15
triadic
#7F6815 #157F68 #68157F
tetradic
#7F6815 #157F33 #152C7F #7F1561
square
#7F6815 #157F33 #152C7F #7F1561
split-complementary
#7F6815 #15617F #33157F
monochromatic
#1A1604 #4A3D0C #7F6815 #B4931E #DDB831

Accessibility & contrast

On white

5.39
#7F6815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7F6815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6815
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6815#FFFFFF#000000##FFFFFF
##7F68151.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756601
Deuteranopia (green-blind)
#7A6D1B
Tritanopia (blue-blind)
#8A5F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f6815;
/* rgb */ color: rgb(127, 104, 21);
/* oklch */ color: oklch(52.5% 0.100 92.2);
Tailwind
colors: {
  custom: {
    50: '#a8925b',
    500: '#7f6815',
    950: '#000000',
  },
}
SCSS
$custom: #7f6815;
$custom-light: #a8925b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6815",
  "rgb": {
    "r": 127,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 46.981,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52523,
    "c": 0.0998,
    "h": 92.2
  },
  "luminance": 0.14467
}

Semantic roles & 50–950 ramp

primary
#7F6815
secondary
#3C56B4
accent
#61EE39
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7F6815

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

Preview Lab → · Contrast checker → · Palette generator →

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