#7D8A31#7D8A31

#7D8A31 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 60.4% C 0.114 H 117.0°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7D8A31
RGBrgb(125, 138, 49)
HSLhsl(69, 48%, 37%)
HSVhsv(69, 64%, 54%)
CMYKcmyk(9.4%, 0%, 64.5%, 45.9%)
CIE-LABlab(54.82, -17.61, 44.57)
CIE-LCHlch(54.82, 47.92, 111.55°)
OKLaboklab(60.45% -0.0518 0.1017)
OKLCHoklch(60.45% 0.114 117)
XYZxyz(18.1007, 22.7589, 6.3445)
Luminance0.2276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A31 #3E318A
analogous
#8A6B31 #7D8A31 #518A31
triadic
#7D8A31 #317D8A #8A317D
tetradic
#7D8A31 #318A6B #3E318A #8A3151
square
#7D8A31 #318A6B #3E318A #8A3151
split-complementary
#7D8A31 #31518A #6B318A
monochromatic
#2B3011 #545D21 #7D8A31 #A6B741 #BCCA6B

Accessibility & contrast

On white

3.78
#7D8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7D8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A31
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A31#FFFFFF#000000##000000
##7D8A311.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938326
Deuteranopia (green-blind)
#928437
Tritanopia (blue-blind)
#848277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a31;
/* rgb */ color: rgb(125, 138, 49);
/* oklch */ color: oklch(60.4% 0.114 117.0);
Tailwind
colors: {
  custom: {
    50: '#a5ac6e',
    500: '#7d8a31',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a31;
$custom-light: #a5ac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a31",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 68.764,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60448,
    "c": 0.11414,
    "h": 117
  },
  "luminance": 0.22759
}

Semantic roles & 50–950 ramp

primary
#7D8A31
secondary
#7065B2
accent
#51D764
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7D8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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