#7E7D12#7E7D12

#7E7D12 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.2% C 0.119 H 109.0°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7E7D12
RGBrgb(126, 125, 18)
HSLhsl(59, 75%, 28%)
HSVhsv(59, 86%, 49%)
CMYKcmyk(0%, 0.8%, 85.7%, 50.6%)
CIE-LABlab(50.86, -11.83, 52.15)
CIE-LCHlch(50.86, 53.48, 102.78°)
OKLaboklab(57.23% -0.0387 0.1122)
OKLCHoklch(57.23% 0.119 109)
XYZxyz(16.0476, 19.1470, 3.4226)
Luminance0.1915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7D12 #12137E
analogous
#7E4712 #7E7D12 #497E12
triadic
#7E7D12 #127E7D #7D127E
tetradic
#7E7D12 #127E47 #12137E #7E1249
square
#7E7D12 #127E47 #12137E #7E1249
split-complementary
#7E7D12 #12497E #47127E
monochromatic
#1B1B04 #48480A #7E7D12 #B4B21A #E1DF2A

Accessibility & contrast

On white

4.35
#7E7D12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#7E7D12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7D12
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7D12#FFFFFF#000000##000000
##7E7D121.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#897B1D
Tritanopia (blue-blind)
#88746A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e7d12;
/* rgb */ color: rgb(126, 125, 18);
/* oklch */ color: oklch(57.2% 0.119 109.0);
Tailwind
colors: {
  custom: {
    50: '#a7a25d',
    500: '#7e7d12',
    950: '#000000',
  },
}
SCSS
$custom: #7e7d12;
$custom-light: #a7a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7d12",
  "rgb": {
    "r": 126,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 59.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.57232,
    "c": 0.11868,
    "h": 109
  },
  "luminance": 0.19147
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E7D12

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

Preview Lab → · Contrast checker → · Palette generator →

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