#7E7A12#7E7A12

#7E7A12 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.5% C 0.116 H 107.2°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7E7A12
RGBrgb(126, 122, 18)
HSLhsl(58, 75%, 28%)
HSVhsv(58, 86%, 49%)
CMYKcmyk(0%, 3.2%, 85.7%, 50.6%)
CIE-LABlab(49.98, -10.19, 51.41)
CIE-LCHlch(49.98, 52.41, 101.22°)
OKLaboklab(56.53% -0.0342 0.1106)
OKLCHoklch(56.53% 0.116 107.2)
XYZxyz(15.6736, 18.3989, 3.2979)
Luminance0.1840 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7A12 #12167E
analogous
#7E4412 #7E7A12 #4C7E12
triadic
#7E7A12 #127E7A #7A127E
tetradic
#7E7A12 #127E44 #12167E #7E124C
square
#7E7A12 #127E44 #12167E #7E124C
split-complementary
#7E7A12 #124C7E #44127E
monochromatic
#1B1A04 #48460A #7E7A12 #B4AE1A #E1DA2A

Accessibility & contrast

On white

4.49
#7E7A12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#7E7A12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7A12
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7A12#FFFFFF#000000##000000
##7E7A121.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#87791C
Tritanopia (blue-blind)
#887168
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e7a12;
/* rgb */ color: rgb(126, 122, 18);
/* oklch */ color: oklch(56.5% 0.116 107.2);
Tailwind
colors: {
  custom: {
    50: '#a7a05c',
    500: '#7e7a12',
    950: '#000000',
  },
}
SCSS
$custom: #7e7a12;
$custom-light: #a7a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7a12",
  "rgb": {
    "r": 126,
    "g": 122,
    "b": 18
  },
  "hsl": {
    "h": 57.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.56528,
    "c": 0.11572,
    "h": 107.2
  },
  "luminance": 0.18398
}

Semantic roles & 50–950 ramp

primary
#7E7A12
secondary
#383DB4
accent
#3DF236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7A12

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

Preview Lab → · Contrast checker → · Palette generator →

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