#7A8F12#7A8F12

#7A8F12 is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.2% C 0.140 H 119.8°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7A8F12
RGBrgb(122, 143, 18)
HSLhsl(70, 78%, 32%)
HSVhsv(70, 87%, 56%)
CMYKcmyk(14.7%, 0%, 87.4%, 43.9%)
CIE-LABlab(55.91, -23.06, 56.28)
CIE-LCHlch(55.91, 60.82, 112.28°)
OKLaboklab(61.21% -0.0694 0.1213)
OKLCHoklch(61.21% 0.14 119.8)
XYZxyz(17.9581, 23.8263, 4.2250)
Luminance0.2383 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8F12 #27128F
analogous
#8F6612 #7A8F12 #3C8F12
triadic
#7A8F12 #127A8F #8F127A
tetradic
#7A8F12 #128F66 #27128F #8F123C
square
#7A8F12 #128F66 #27128F #8F123C
split-complementary
#7A8F12 #123C8F #66128F
monochromatic
#1D2204 #4C590B #7A8F12 #A8C519 #C8E636

Accessibility & contrast

On white

3.64
#7A8F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#7A8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8F12
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8F12#FFFFFF#000000##000000
##7A8F121.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#968621
Tritanopia (blue-blind)
#828779
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7a8f12;
/* rgb */ color: rgb(122, 143, 18);
/* oklch */ color: oklch(61.2% 0.140 119.8);
Tailwind
colors: {
  custom: {
    50: '#a4af60',
    500: '#7a8f12',
    950: '#000000',
  },
}
SCSS
$custom: #7a8f12;
$custom-light: #a4af60;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8f12",
  "rgb": {
    "r": 122,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 70.08,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.6121,
    "c": 0.13976,
    "h": 119.8
  },
  "luminance": 0.23826
}

Semantic roles & 50–950 ramp

primary
#7A8F12
secondary
#513AC3
accent
#34F454
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7A8F12

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

Preview Lab → · Contrast checker → · Palette generator →

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