#7F7212#7F7212

#7F7212 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.8% C 0.108 H 100.9°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7F7212
RGBrgb(127, 114, 18)
HSLhsl(53, 75%, 28%)
HSVhsv(53, 86%, 50%)
CMYKcmyk(0%, 10.2%, 85.8%, 50.2%)
CIE-LABlab(47.74, -5.27, 49.55)
CIE-LCHlch(47.74, 49.83, 96.07°)
OKLaboklab(54.77% -0.0205 0.1065)
OKLCHoklch(54.77% 0.108 100.9)
XYZxyz(14.8796, 16.5911, 2.9908)
Luminance0.1659 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7212 #121F7F
analogous
#7F3B12 #7F7212 #557F12
triadic
#7F7212 #127F72 #72127F
tetradic
#7F7212 #127F3B #121F7F #7F1255
square
#7F7212 #127F3B #121F7F #7F1255
split-complementary
#7F7212 #12557F #3B127F
monochromatic
#1B1804 #49420A #7F7212 #B5A21A #E1CB2B

Accessibility & contrast

On white

4.86
#7F7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7F7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7212
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7212#FFFFFF#000000##FFFFFF
##7F72121.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#82731A
Tritanopia (blue-blind)
#8A6961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f7212;
/* rgb */ color: rgb(127, 114, 18);
/* oklch */ color: oklch(54.8% 0.108 100.9);
Tailwind
colors: {
  custom: {
    50: '#a89a5b',
    500: '#7f7212',
    950: '#000000',
  },
}
SCSS
$custom: #7f7212;
$custom-light: #a89a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7212",
  "rgb": {
    "r": 127,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 52.844,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54771,
    "c": 0.10841,
    "h": 100.9
  },
  "luminance": 0.1659
}

Semantic roles & 50–950 ramp

primary
#7F7212
secondary
#3847B5
accent
#4CF236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7F7212

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

Preview Lab → · Contrast checker → · Palette generator →

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