#7A8A18#7A8A18

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

Color values

HEX#7A8A18
RGBrgb(122, 138, 24)
HSLhsl(68, 70%, 32%)
HSVhsv(68, 83%, 54%)
CMYKcmyk(11.6%, 0%, 82.6%, 45.9%)
CIE-LABlab(54.43, -20.32, 53.46)
CIE-LCHlch(54.43, 57.19, 110.81°)
OKLaboklab(60.02% -0.0615 0.1163)
OKLCHoklch(60.02% 0.132 117.9)
XYZxyz(17.2798, 22.3807, 4.2736)
Luminance0.2238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8A18 #28188A
analogous
#8A6118 #7A8A18 #418A18
triadic
#7A8A18 #187A8A #8A187A
tetradic
#7A8A18 #188A61 #28188A #8A1841
square
#7A8A18 #188A61 #28188A #8A1841
split-complementary
#7A8A18 #18418A #61188A
monochromatic
#1E2206 #4C560F #7A8A18 #A8BE21 #C7DE3F

Accessibility & contrast

On white

3.83
#7A8A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#7A8A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8A18
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8A18#FFFFFF#000000##000000
##7A8A181.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a8a18;
/* rgb */ color: rgb(122, 138, 24);
/* oklch */ color: oklch(60.0% 0.132 117.9);
Tailwind
colors: {
  custom: {
    50: '#a4ac61',
    500: '#7a8a18',
    950: '#000000',
  },
}
SCSS
$custom: #7a8a18;
$custom-light: #a4ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8a18",
  "rgb": {
    "r": 122,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 68.421,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60021,
    "c": 0.13153,
    "h": 117.9
  },
  "luminance": 0.2238
}

Semantic roles & 50–950 ramp

primary
#7A8A18
secondary
#5240BD
accent
#3BED54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7A8A18

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

Preview Lab → · Contrast checker → · Palette generator →

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