#7F7712#7F7712

#7F7712 is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.9% C 0.113 H 104.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7F7712
RGBrgb(127, 119, 18)
HSLhsl(56, 75%, 28%)
HSVhsv(56, 86%, 50%)
CMYKcmyk(0%, 6.3%, 85.8%, 50.2%)
CIE-LABlab(49.19, -8.07, 50.78)
CIE-LCHlch(49.19, 51.42, 99.03°)
OKLaboklab(55.92% -0.0283 0.1091)
OKLCHoklch(55.92% 0.113 104.5)
XYZxyz(15.4591, 17.7500, 3.1839)
Luminance0.1775 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7712 #121A7F
analogous
#7F4012 #7F7712 #507F12
triadic
#7F7712 #127F77 #77127F
tetradic
#7F7712 #127F40 #121A7F #7F1250
square
#7F7712 #127F40 #121A7F #7F1250
split-complementary
#7F7712 #12507F #40127F
monochromatic
#1B1904 #49450A #7F7712 #B5A91A #E1D32B

Accessibility & contrast

On white

4.62
#7F7712 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7F7712 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7712
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7712#FFFFFF#000000##FFFFFF
##7F77121.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#85771B
Tritanopia (blue-blind)
#896E65
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f7712;
/* rgb */ color: rgb(127, 119, 18);
/* oklch */ color: oklch(55.9% 0.113 104.5);
Tailwind
colors: {
  custom: {
    50: '#a89d5c',
    500: '#7f7712',
    950: '#000000',
  },
}
SCSS
$custom: #7f7712;
$custom-light: #a89d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7712",
  "rgb": {
    "r": 127,
    "g": 119,
    "b": 18
  },
  "hsl": {
    "h": 55.596,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55924,
    "c": 0.11275,
    "h": 104.5
  },
  "luminance": 0.17749
}

Semantic roles & 50–950 ramp

primary
#7F7712
secondary
#3841B5
accent
#44F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7F7712

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

Preview Lab → · Contrast checker → · Palette generator →

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