#7A8D18#7A8D18

#7A8D18 is a mid, vivid yellow. Relative luminance 0.233; OKLCH L 60.7% C 0.135 H 119.1°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#7A8D18
RGBrgb(122, 141, 24)
HSLhsl(70, 71%, 32%)
HSVhsv(70, 83%, 55%)
CMYKcmyk(13.5%, 0%, 83%, 44.7%)
CIE-LABlab(55.33, -21.85, 54.26)
CIE-LCHlch(55.33, 58.49, 111.94°)
OKLaboklab(60.75% -0.0657 0.118)
OKLCHoklch(60.75% 0.135 119.1)
XYZxyz(17.7162, 23.2534, 4.4190)
Luminance0.2325 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8D18 #2B188D
analogous
#8D6618 #7A8D18 #3F8D18
triadic
#7A8D18 #187A8D #8D187A
tetradic
#7A8D18 #188D66 #2B188D #8D183F
square
#7A8D18 #188D66 #2B188D #8D183F
split-complementary
#7A8D18 #183F8D #66188D
monochromatic
#1F2406 #4D590F #7A8D18 #A7C121 #C5DF41

Accessibility & contrast

On white

3.72
#7A8D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#7A8D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8D18
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8D18#FFFFFF#000000##000000
##7A8D181.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#978400
Deuteranopia (green-blind)
#958524
Tritanopia (blue-blind)
#828578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7a8d18;
/* rgb */ color: rgb(122, 141, 24);
/* oklch */ color: oklch(60.7% 0.135 119.1);
Tailwind
colors: {
  custom: {
    50: '#a4ae61',
    500: '#7a8d18',
    950: '#000000',
  },
}
SCSS
$custom: #7a8d18;
$custom-light: #a4ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8d18",
  "rgb": {
    "r": 122,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 69.744,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60749,
    "c": 0.13503,
    "h": 119.1
  },
  "luminance": 0.23253
}

Semantic roles & 50–950 ramp

primary
#7A8D18
secondary
#5642BF
accent
#3AEE57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7A8D18

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

Preview Lab → · Contrast checker → · Palette generator →

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