#7D8B22#7D8B22

#7D8B22 is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.6% C 0.126 H 117.0°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7D8B22
RGBrgb(125, 139, 34)
HSLhsl(68, 61%, 34%)
HSVhsv(68, 76%, 55%)
CMYKcmyk(10.1%, 0%, 75.5%, 45.5%)
CIE-LABlab(55.01, -19.06, 50.84)
CIE-LCHlch(55.01, 54.30, 110.55°)
OKLaboklab(60.56% -0.0574 0.1124)
OKLCHoklch(60.56% 0.126 117)
XYZxyz(17.9792, 22.9409, 4.9940)
Luminance0.2294 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8B22 #30228B
analogous
#8B6522 #7D8B22 #498B22
triadic
#7D8B22 #227D8B #8B227D
tetradic
#7D8B22 #228B65 #30228B #8B2249
square
#7D8B22 #228B65 #30228B #8B2249
split-complementary
#7D8B22 #22498B #65228B
monochromatic
#25290A #515A16 #7D8B22 #A9BC2E #C3D553

Accessibility & contrast

On white

3.76
#7D8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#7D8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8B22
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8B22#FFFFFF#000000##000000
##7D8B221.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#95830C
Deuteranopia (green-blind)
#93842B
Tritanopia (blue-blind)
#858377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7d8b22;
/* rgb */ color: rgb(125, 139, 34);
/* oklch */ color: oklch(60.6% 0.126 117.0);
Tailwind
colors: {
  custom: {
    50: '#a6ac66',
    500: '#7d8b22',
    950: '#000000',
  },
}
SCSS
$custom: #7d8b22;
$custom-light: #a6ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8b22",
  "rgb": {
    "r": 125,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 68,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60564,
    "c": 0.12622,
    "h": 117
  },
  "luminance": 0.22941
}

Semantic roles & 50–950 ramp

primary
#7D8B22
secondary
#5E50B8
accent
#44E459
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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