#7E7F12#7E7F12

#7E7F12 is a mid, vivid yellow. Relative luminance 0.197; OKLCH L 57.7% C 0.121 H 110.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7E7F12
RGBrgb(126, 127, 18)
HSLhsl(61, 75%, 28%)
HSVhsv(61, 86%, 50%)
CMYKcmyk(0.8%, 0%, 85.8%, 50.2%)
CIE-LABlab(51.45, -12.92, 52.65)
CIE-LCHlch(51.45, 54.21, 103.78°)
OKLaboklab(57.7% -0.0417 0.1133)
OKLCHoklch(57.7% 0.121 110.2)
XYZxyz(16.3034, 19.6585, 3.5078)
Luminance0.1966 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7F12 #13127F
analogous
#7F4912 #7E7F12 #477F12
triadic
#7E7F12 #127E7F #7F127E
tetradic
#7E7F12 #127F49 #13127F #7F1247
square
#7E7F12 #127F49 #13127F #7F1247
split-complementary
#7E7F12 #12477F #49127F
monochromatic
#1B1B04 #49490A #7E7F12 #B3B51A #DFE12B

Accessibility & contrast

On white

4.26
#7E7F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#7E7F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7F12
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7F12#FFFFFF#000000##000000
##7E7F121.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8B7C1D
Tritanopia (blue-blind)
#88766C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e7f12;
/* rgb */ color: rgb(126, 127, 18);
/* oklch */ color: oklch(57.7% 0.121 110.2);
Tailwind
colors: {
  custom: {
    50: '#a7a35d',
    500: '#7e7f12',
    950: '#000000',
  },
}
SCSS
$custom: #7e7f12;
$custom-light: #a7a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7f12",
  "rgb": {
    "r": 126,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 60.55,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.57704,
    "c": 0.12071,
    "h": 110.2
  },
  "luminance": 0.19658
}

Semantic roles & 50–950 ramp

primary
#7E7F12
secondary
#3938B5
accent
#36F238
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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