#7D8A21#7D8A21

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

Color values

HEX#7D8A21
RGBrgb(125, 138, 33)
HSLhsl(67, 61%, 34%)
HSVhsv(67, 76%, 54%)
CMYKcmyk(9.4%, 0%, 76.1%, 45.9%)
CIE-LABlab(54.71, -18.59, 50.91)
CIE-LCHlch(54.71, 54.20, 110.06°)
OKLaboklab(60.32% -0.0562 0.1124)
OKLCHoklch(60.32% 0.126 116.6)
XYZxyz(17.8209, 22.6470, 4.8711)
Luminance0.2265 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A21 #2E218A
analogous
#8A6221 #7D8A21 #488A21
triadic
#7D8A21 #217D8A #8A217D
tetradic
#7D8A21 #218A62 #2E218A #8A2148
square
#7D8A21 #218A62 #2E218A #8A2148
split-complementary
#7D8A21 #21488A #62218A
monochromatic
#242709 #505915 #7D8A21 #AABB2D #C5D550

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8A21#FFFFFF#000000##000000
##7D8A211.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)
#94820A
Deuteranopia (green-blind)
#93842A
Tritanopia (blue-blind)
#858276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a21;
/* rgb */ color: rgb(125, 138, 33);
/* oklch */ color: oklch(60.3% 0.126 116.6);
Tailwind
colors: {
  custom: {
    50: '#a6ac65',
    500: '#7d8a21',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a21;
$custom-light: #a6ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a21",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 67.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60318,
    "c": 0.12564,
    "h": 116.6
  },
  "luminance": 0.22647
}

Semantic roles & 50–950 ramp

primary
#7D8A21
secondary
#5B4EB9
accent
#43E557
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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