#7A8A12#7A8A12

#7A8A12 is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.0% C 0.134 H 117.8°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7A8A12
RGBrgb(122, 138, 18)
HSLhsl(68, 77%, 31%)
HSVhsv(68, 87%, 54%)
CMYKcmyk(11.6%, 0%, 87%, 45.9%)
CIE-LABlab(54.41, -20.52, 55.01)
CIE-LCHlch(54.41, 58.72, 110.46°)
OKLaboklab(60% -0.0625 0.1186)
OKLCHoklch(60% 0.134 117.8)
XYZxyz(17.2242, 22.3584, 3.9804)
Luminance0.2236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8A12 #22128A
analogous
#8A5E12 #7A8A12 #3E8A12
triadic
#7A8A12 #127A8A #8A127A
tetradic
#7A8A12 #128A5E #22128A #8A123E
square
#7A8A12 #128A5E #22128A #8A123E
split-complementary
#7A8A12 #123E8A #5E128A
monochromatic
#1A1E04 #4A540B #7A8A12 #AAC019 #CDE432

Accessibility & contrast

On white

3.84
#7A8A12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#7A8A12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8A12
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8A12#FFFFFF#000000##000000
##7A8A121.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#928320
Tritanopia (blue-blind)
#828275
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7a8a12;
/* rgb */ color: rgb(122, 138, 18);
/* oklch */ color: oklch(60.0% 0.134 117.8);
Tailwind
colors: {
  custom: {
    50: '#a4ac5f',
    500: '#7a8a12',
    950: '#000000',
  },
}
SCSS
$custom: #7a8a12;
$custom-light: #a4ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8a12",
  "rgb": {
    "r": 122,
    "g": 138,
    "b": 18
  },
  "hsl": {
    "h": 68,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.59995,
    "c": 0.13402,
    "h": 117.8
  },
  "luminance": 0.22358
}

Semantic roles & 50–950 ramp

primary
#7A8A12
secondary
#4B39BF
accent
#34F34E
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7A8A12

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

Preview Lab → · Contrast checker → · Palette generator →

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