#7D8422#7D8422

#7D8422 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 58.9% C 0.118 H 113.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7D8422
RGBrgb(125, 132, 34)
HSLhsl(64, 59%, 33%)
HSVhsv(64, 74%, 52%)
CMYKcmyk(5.3%, 0%, 74.2%, 48.2%)
CIE-LABlab(52.93, -15.39, 48.84)
CIE-LCHlch(52.93, 51.21, 107.49°)
OKLaboklab(58.89% -0.0472 0.1082)
OKLCHoklch(58.89% 0.118 113.6)
XYZxyz(16.9979, 20.9783, 4.6669)
Luminance0.2098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8422 #292284
analogous
#845A22 #7D8422 #4C8422
triadic
#7D8422 #227D84 #84227D
tetradic
#7D8422 #22845A #292284 #84224C
square
#7D8422 #22845A #292284 #84224C
split-complementary
#7D8422 #224C84 #5A2284
monochromatic
#212309 #4F5315 #7D8422 #ABB52F #C8D24F

Accessibility & contrast

On white

4.04
#7D8422 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#7D8422 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8422
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8422#FFFFFF#000000##000000
##7D84221.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0F
Deuteranopia (green-blind)
#8E7F2A
Tritanopia (blue-blind)
#867C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7d8422;
/* rgb */ color: rgb(125, 132, 34);
/* oklch */ color: oklch(58.9% 0.118 113.6);
Tailwind
colors: {
  custom: {
    50: '#a6a765',
    500: '#7d8422',
    950: '#000000',
  },
}
SCSS
$custom: #7d8422;
$custom-light: #a6a765;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8422",
  "rgb": {
    "r": 125,
    "g": 132,
    "b": 34
  },
  "hsl": {
    "h": 64.286,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58891,
    "c": 0.11805,
    "h": 113.6
  },
  "luminance": 0.20978
}

Semantic roles & 50–950 ramp

primary
#7D8422
secondary
#544DB5
accent
#46E251
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8422

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

Preview Lab → · Contrast checker → · Palette generator →

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