#7A7E12#7A7E12

#7A7E12 is a mid, vivid yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.121 H 112.0°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7A7E12
RGBrgb(122, 126, 18)
HSLhsl(62, 75%, 28%)
HSVhsv(62, 86%, 49%)
CMYKcmyk(3.2%, 0%, 85.7%, 50.6%)
CIE-LABlab(50.81, -14.23, 51.97)
CIE-LCHlch(50.81, 53.89, 105.31°)
OKLaboklab(57.11% -0.0451 0.112)
OKLCHoklch(57.11% 0.121 112)
XYZxyz(15.5966, 19.1034, 3.4379)
Luminance0.1910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7E12 #16127E
analogous
#7E4C12 #7A7E12 #447E12
triadic
#7A7E12 #127A7E #7E127A
tetradic
#7A7E12 #127E4C #16127E #7E1244
square
#7A7E12 #127E4C #16127E #7E1244
split-complementary
#7A7E12 #12447E #4C127E
monochromatic
#1A1B04 #46480A #7A7E12 #AEB41A #DAE12A

Accessibility & contrast

On white

4.36
#7A7E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#7A7E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A7E12
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7E12#FFFFFF#000000##000000
##7A7E121.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#897A1D
Tritanopia (blue-blind)
#83766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7a7e12;
/* rgb */ color: rgb(122, 126, 18);
/* oklch */ color: oklch(57.1% 0.121 112.0);
Tailwind
colors: {
  custom: {
    50: '#a4a35d',
    500: '#7a7e12',
    950: '#000000',
  },
}
SCSS
$custom: #7a7e12;
$custom-light: #a4a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7e12",
  "rgb": {
    "r": 122,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 62.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.57106,
    "c": 0.12074,
    "h": 112
  },
  "luminance": 0.19103
}

Semantic roles & 50–950 ramp

primary
#7A7E12
secondary
#3D38B4
accent
#36F23D
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7A7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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