#7A8A22#7A8A22

#7A8A22 is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.1% C 0.126 H 118.1°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7A8A22
RGBrgb(122, 138, 34)
HSLhsl(69, 60%, 34%)
HSVhsv(69, 75%, 54%)
CMYKcmyk(11.6%, 0%, 75.4%, 45.9%)
CIE-LABlab(54.48, -19.87, 50.25)
CIE-LCHlch(54.48, 54.04, 111.57°)
OKLaboklab(60.08% -0.0594 0.1113)
OKLCHoklch(60.08% 0.126 118.1)
XYZxyz(17.4036, 22.4302, 4.9257)
Luminance0.2243 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8A22 #32228A
analogous
#8A6622 #7A8A22 #468A22
triadic
#7A8A22 #227A8A #8A227A
tetradic
#7A8A22 #228A66 #32228A #8A2246
square
#7A8A22 #228A66 #32228A #8A2246
split-complementary
#7A8A22 #22468A #66228A
monochromatic
#23280A #4F5916 #7A8A22 #A5BB2E #C0D452

Accessibility & contrast

On white

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

On black

5.49
#7A8A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8A22
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8A22#FFFFFF#000000##000000
##7A8A221.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820C
Deuteranopia (green-blind)
#92832B
Tritanopia (blue-blind)
#828276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7a8a22;
/* rgb */ color: rgb(122, 138, 34);
/* oklch */ color: oklch(60.1% 0.126 118.1);
Tailwind
colors: {
  custom: {
    50: '#a3ac65',
    500: '#7a8a22',
    950: '#000000',
  },
}
SCSS
$custom: #7a8a22;
$custom-light: #a3ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8a22",
  "rgb": {
    "r": 122,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 69.231,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60079,
    "c": 0.12616,
    "h": 118.1
  },
  "luminance": 0.2243
}

Semantic roles & 50–950 ramp

primary
#7A8A22
secondary
#6050B8
accent
#44E45D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #7A8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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