#7A8A21#7A8A21

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

Color values

HEX#7A8A21
RGBrgb(122, 138, 33)
HSLhsl(69, 61%, 34%)
HSVhsv(69, 76%, 54%)
CMYKcmyk(11.6%, 0%, 76.1%, 45.9%)
CIE-LABlab(54.47, -19.92, 50.61)
CIE-LCHlch(54.47, 54.39, 111.49°)
OKLaboklab(60.07% -0.0597 0.1119)
OKLCHoklch(60.07% 0.127 118.1)
XYZxyz(17.3894, 22.4245, 4.8508)
Luminance0.2242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8A21 #31218A
analogous
#8A6521 #7A8A21 #458A21
triadic
#7A8A21 #217A8A #8A217A
tetradic
#7A8A21 #218A65 #31218A #8A2145
square
#7A8A21 #218A65 #31218A #8A2145
split-complementary
#7A8A21 #21458A #65218A
monochromatic
#232709 #4E5915 #7A8A21 #A6BB2D #C1D550

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A8A21#FFFFFF#000000##000000
##7A8A211.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)
#94820A
Deuteranopia (green-blind)
#92832A
Tritanopia (blue-blind)
#828276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7a8a21;
/* rgb */ color: rgb(122, 138, 33);
/* oklch */ color: oklch(60.1% 0.127 118.1);
Tailwind
colors: {
  custom: {
    50: '#a4ac65',
    500: '#7a8a21',
    950: '#000000',
  },
}
SCSS
$custom: #7a8a21;
$custom-light: #a4ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8a21",
  "rgb": {
    "r": 122,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 69.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60073,
    "c": 0.12677,
    "h": 118.1
  },
  "luminance": 0.22424
}

Semantic roles & 50–950 ramp

primary
#7A8A21
secondary
#5E4EB9
accent
#43E55C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #7A8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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