#7F7812#7F7812

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

Color values

HEX#7F7812
RGBrgb(127, 120, 18)
HSLhsl(56, 75%, 28%)
HSVhsv(56, 86%, 50%)
CMYKcmyk(0%, 5.5%, 85.8%, 50.2%)
CIE-LABlab(49.48, -8.62, 51.03)
CIE-LCHlch(49.48, 51.75, 99.59°)
OKLaboklab(56.16% -0.0298 0.1097)
OKLCHoklch(56.16% 0.114 105.2)
XYZxyz(15.5788, 17.9893, 3.2238)
Luminance0.1799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7812 #12197F
analogous
#7F4112 #7F7812 #4F7F12
triadic
#7F7812 #127F78 #78127F
tetradic
#7F7812 #127F41 #12197F #7F124F
square
#7F7812 #127F41 #12197F #7F124F
split-complementary
#7F7812 #124F7F #41127F
monochromatic
#1B1904 #49450A #7F7812 #B5AB1A #E1D52B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7812#FFFFFF#000000##000000
##7F78121.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: #7f7812;
/* rgb */ color: rgb(127, 120, 18);
/* oklch */ color: oklch(56.2% 0.114 105.2);
Tailwind
colors: {
  custom: {
    50: '#a89e5c',
    500: '#7f7812',
    950: '#000000',
  },
}
SCSS
$custom: #7f7812;
$custom-light: #a89e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7812",
  "rgb": {
    "r": 127,
    "g": 120,
    "b": 18
  },
  "hsl": {
    "h": 56.147,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56156,
    "c": 0.11367,
    "h": 105.2
  },
  "luminance": 0.17989
}

Semantic roles & 50–950 ramp

primary
#7F7812
secondary
#3840B5
accent
#42F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7F7812

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

Preview Lab → · Contrast checker → · Palette generator →

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