#7F7E12#7F7E12

#7F7E12 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.119 H 109.1°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7F7E12
RGBrgb(127, 126, 18)
HSLhsl(59, 75%, 28%)
HSVhsv(59, 86%, 50%)
CMYKcmyk(0%, 0.8%, 85.8%, 50.2%)
CIE-LABlab(51.24, -11.91, 52.51)
CIE-LCHlch(51.24, 53.85, 102.78°)
OKLaboklab(57.56% -0.039 0.1129)
OKLCHoklch(57.56% 0.119 109.1)
XYZxyz(16.3231, 19.4779, 3.4719)
Luminance0.1948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7E12 #12137F
analogous
#7F4712 #7F7E12 #497F12
triadic
#7F7E12 #127F7E #7E127F
tetradic
#7F7E12 #127F47 #12137F #7F1249
square
#7F7E12 #127F47 #12137F #7F1249
split-complementary
#7F7E12 #12497F #47127F
monochromatic
#1B1B04 #49490A #7F7E12 #B5B31A #E1DF2B

Accessibility & contrast

On white

4.29
#7F7E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#7F7E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7E12
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7E12#FFFFFF#000000##000000
##7F7E121.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#8A7C1D
Tritanopia (blue-blind)
#89756B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f7e12;
/* rgb */ color: rgb(127, 126, 18);
/* oklch */ color: oklch(57.6% 0.119 109.1);
Tailwind
colors: {
  custom: {
    50: '#a8a35d',
    500: '#7f7e12',
    950: '#000000',
  },
}
SCSS
$custom: #7f7e12;
$custom-light: #a8a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7e12",
  "rgb": {
    "r": 127,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 59.45,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.57559,
    "c": 0.11945,
    "h": 109.1
  },
  "luminance": 0.19477
}

Semantic roles & 50–950 ramp

primary
#7F7E12
secondary
#3839B5
accent
#38F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7F7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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