#7D8A22#7D8A22

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

Color values

HEX#7D8A22
RGBrgb(125, 138, 34)
HSLhsl(68, 60%, 34%)
HSVhsv(68, 75%, 54%)
CMYKcmyk(9.4%, 0%, 75.4%, 45.9%)
CIE-LABlab(54.71, -18.54, 50.56)
CIE-LCHlch(54.71, 53.85, 110.14°)
OKLaboklab(60.32% -0.0559 0.1118)
OKLCHoklch(60.32% 0.125 116.6)
XYZxyz(17.8351, 22.6527, 4.9459)
Luminance0.2265 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A22 #2F228A
analogous
#8A6322 #7D8A22 #498A22
triadic
#7D8A22 #227D8A #8A227D
tetradic
#7D8A22 #228A63 #2F228A #8A2249
square
#7D8A22 #228A63 #2F228A #8A2249
split-complementary
#7D8A22 #22498A #63228A
monochromatic
#24280A #515916 #7D8A22 #A9BB2E #C4D452

Accessibility & contrast

On white

3.80
#7D8A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8A22#FFFFFF#000000##000000
##7D8A221.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820C
Deuteranopia (green-blind)
#93842B
Tritanopia (blue-blind)
#858276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a22;
/* rgb */ color: rgb(125, 138, 34);
/* oklch */ color: oklch(60.3% 0.125 116.6);
Tailwind
colors: {
  custom: {
    50: '#a6ac65',
    500: '#7d8a22',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a22;
$custom-light: #a6ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a22",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 67.5,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60324,
    "c": 0.12504,
    "h": 116.6
  },
  "luminance": 0.22652
}

Semantic roles & 50–950 ramp

primary
#7D8A22
secondary
#5D50B8
accent
#44E458
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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