#7F7813#7F7813

#7F7813 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.113 H 105.2°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7F7813
RGBrgb(127, 120, 19)
HSLhsl(56, 74%, 29%)
HSVhsv(56, 85%, 50%)
CMYKcmyk(0%, 5.5%, 85%, 50.2%)
CIE-LABlab(49.49, -8.59, 50.76)
CIE-LCHlch(49.49, 51.48, 99.61°)
OKLaboklab(56.16% -0.0297 0.1093)
OKLCHoklch(56.16% 0.113 105.2)
XYZxyz(15.5871, 17.9926, 3.2678)
Luminance0.1799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7813 #131A7F
analogous
#7F4213 #7F7813 #507F13
triadic
#7F7813 #137F78 #78137F
tetradic
#7F7813 #137F42 #131A7F #7F1350
square
#7F7813 #137F42 #131A7F #7F1350
split-complementary
#7F7813 #13507F #42137F
monochromatic
#1B1904 #4A460B #7F7813 #B4AA1B #E0D42D

Accessibility & contrast

On white

4.57
#7F7813 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7F7813 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7813
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7813#FFFFFF#000000##000000
##7F78131.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#86771C
Tritanopia (blue-blind)
#896F66
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f7813;
/* rgb */ color: rgb(127, 120, 19);
/* oklch */ color: oklch(56.2% 0.113 105.2);
Tailwind
colors: {
  custom: {
    50: '#a89e5c',
    500: '#7f7813',
    950: '#000000',
  },
}
SCSS
$custom: #7f7813;
$custom-light: #a89e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7813",
  "rgb": {
    "r": 127,
    "g": 120,
    "b": 19
  },
  "hsl": {
    "h": 56.111,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56161,
    "c": 0.11324,
    "h": 105.2
  },
  "luminance": 0.17992
}

Semantic roles & 50–950 ramp

primary
#7F7813
secondary
#3941B4
accent
#43F137
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7813

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

Preview Lab → · Contrast checker → · Palette generator →

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