#7A8B18#7A8B18

#7A8B18 is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.3% C 0.133 H 118.3°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7A8B18
RGBrgb(122, 139, 24)
HSLhsl(69, 71%, 32%)
HSVhsv(69, 83%, 55%)
CMYKcmyk(12.2%, 0%, 82.7%, 45.5%)
CIE-LABlab(54.73, -20.83, 53.73)
CIE-LCHlch(54.73, 57.62, 111.19°)
OKLaboklab(60.26% -0.0629 0.1168)
OKLCHoklch(60.26% 0.133 118.3)
XYZxyz(17.4240, 22.6689, 4.3216)
Luminance0.2267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8B18 #29188B
analogous
#8B6318 #7A8B18 #408B18
triadic
#7A8B18 #187A8B #8B187A
tetradic
#7A8B18 #188B63 #29188B #8B1840
square
#7A8B18 #188B63 #29188B #8B1840
split-complementary
#7A8B18 #18408B #63188B
monochromatic
#1E2306 #4C570F #7A8B18 #A8BF21 #C7DE3F

Accessibility & contrast

On white

3.79
#7A8B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#7A8B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8B18
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8B18#FFFFFF#000000##000000
##7A8B181.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#938324
Tritanopia (blue-blind)
#828376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7a8b18;
/* rgb */ color: rgb(122, 139, 24);
/* oklch */ color: oklch(60.3% 0.133 118.3);
Tailwind
colors: {
  custom: {
    50: '#a4ac61',
    500: '#7a8b18',
    950: '#000000',
  },
}
SCSS
$custom: #7a8b18;
$custom-light: #a4ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8b18",
  "rgb": {
    "r": 122,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 68.87,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60264,
    "c": 0.1327,
    "h": 118.3
  },
  "luminance": 0.22669
}

Semantic roles & 50–950 ramp

primary
#7A8B18
secondary
#5340BE
accent
#3AED55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7A8B18

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

Preview Lab → · Contrast checker → · Palette generator →

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