#7F7412#7F7412

#7F7412 is a mid, moderate yellow. Relative luminance 0.170; OKLCH L 55.2% C 0.110 H 102.4°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7F7412
RGBrgb(127, 116, 18)
HSLhsl(54, 75%, 28%)
HSVhsv(54, 86%, 50%)
CMYKcmyk(0%, 8.7%, 85.8%, 50.2%)
CIE-LABlab(48.32, -6.39, 50.04)
CIE-LCHlch(48.32, 50.45, 97.28°)
OKLaboklab(55.23% -0.0236 0.1075)
OKLCHoklch(55.23% 0.11 102.4)
XYZxyz(15.1077, 17.0472, 3.0668)
Luminance0.1705 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7412 #121D7F
analogous
#7F3D12 #7F7412 #537F12
triadic
#7F7412 #127F74 #74127F
tetradic
#7F7412 #127F3D #121D7F #7F1253
square
#7F7412 #127F3D #121D7F #7F1253
split-complementary
#7F7412 #12537F #3D127F
monochromatic
#1B1804 #49430A #7F7412 #B5A51A #E1CE2B

Accessibility & contrast

On white

4.76
#7F7412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7F7412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7412
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7412#FFFFFF#000000##FFFFFF
##7F74121.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#83751B
Tritanopia (blue-blind)
#896B63
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f7412;
/* rgb */ color: rgb(127, 116, 18);
/* oklch */ color: oklch(55.2% 0.110 102.4);
Tailwind
colors: {
  custom: {
    50: '#a89b5b',
    500: '#7f7412',
    950: '#000000',
  },
}
SCSS
$custom: #7f7412;
$custom-light: #a89b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7412",
  "rgb": {
    "r": 127,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 53.945,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5523,
    "c": 0.11009,
    "h": 102.4
  },
  "luminance": 0.17046
}

Semantic roles & 50–950 ramp

primary
#7F7412
secondary
#3845B5
accent
#49F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7F7412

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

Preview Lab → · Contrast checker → · Palette generator →

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