#7F7112#7F7112

#7F7112 is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.5% C 0.108 H 100.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7F7112
RGBrgb(127, 113, 18)
HSLhsl(52, 75%, 28%)
HSVhsv(52, 86%, 50%)
CMYKcmyk(0%, 11%, 85.8%, 50.2%)
CIE-LABlab(47.45, -4.70, 49.31)
CIE-LCHlch(47.45, 49.53, 95.45°)
OKLaboklab(54.54% -0.0189 0.1059)
OKLCHoklch(54.54% 0.108 100.1)
XYZxyz(14.7675, 16.3667, 2.9534)
Luminance0.1637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7112 #12207F
analogous
#7F3B12 #7F7112 #567F12
triadic
#7F7112 #127F71 #71127F
tetradic
#7F7112 #127F3B #12207F #7F1256
square
#7F7112 #127F3B #12207F #7F1256
split-complementary
#7F7112 #12567F #3B127F
monochromatic
#1B1804 #49410A #7F7112 #B5A11A #E1C92B

Accessibility & contrast

On white

4.91
#7F7112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7F7112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7112
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7112#FFFFFF#000000##FFFFFF
##7F71121.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#81731A
Tritanopia (blue-blind)
#8A6860
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f7112;
/* rgb */ color: rgb(127, 113, 18);
/* oklch */ color: oklch(54.5% 0.108 100.1);
Tailwind
colors: {
  custom: {
    50: '#a8995b',
    500: '#7f7112',
    950: '#000000',
  },
}
SCSS
$custom: #7f7112;
$custom-light: #a8995b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7112",
  "rgb": {
    "r": 127,
    "g": 113,
    "b": 18
  },
  "hsl": {
    "h": 52.294,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54541,
    "c": 0.1076,
    "h": 100.1
  },
  "luminance": 0.16366
}

Semantic roles & 50–950 ramp

primary
#7F7112
secondary
#3848B5
accent
#4EF236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F7112

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

Preview Lab → · Contrast checker → · Palette generator →

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