#7D8331#7D8331

#7D8331 is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 58.8% C 0.105 H 113.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7D8331
RGBrgb(125, 131, 49)
HSLhsl(64, 46%, 35%)
HSVhsv(64, 63%, 51%)
CMYKcmyk(4.6%, 0%, 62.6%, 48.6%)
CIE-LABlab(52.75, -13.90, 42.33)
CIE-LCHlch(52.75, 44.56, 108.18°)
OKLaboklab(58.78% -0.0414 0.097)
OKLCHoklch(58.78% 0.105 113.1)
XYZxyz(17.1285, 20.8147, 6.0205)
Luminance0.2081 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8331 #373183
analogous
#836031 #7D8331 #548331
triadic
#7D8331 #317D83 #83317D
tetradic
#7D8331 #318360 #373183 #833154
square
#7D8331 #318360 #373183 #833154
split-complementary
#7D8331 #315483 #603183
monochromatic
#282A10 #535620 #7D8331 #A8B042 #C0C668

Accessibility & contrast

On white

4.07
#7D8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#7D8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8331
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8331#FFFFFF#000000##000000
##7D83311.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7D27
Deuteranopia (green-blind)
#8C7F36
Tritanopia (blue-blind)
#857B72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7d8331;
/* rgb */ color: rgb(125, 131, 49);
/* oklch */ color: oklch(58.8% 0.105 113.1);
Tailwind
colors: {
  custom: {
    50: '#a5a66d',
    500: '#7d8331',
    950: '#000000',
  },
}
SCSS
$custom: #7d8331;
$custom-light: #a5a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8331",
  "rgb": {
    "r": 125,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 64.39,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58784,
    "c": 0.10544,
    "h": 113.1
  },
  "luminance": 0.20814
}

Semantic roles & 50–950 ramp

primary
#7D8331
secondary
#6762AE
accent
#53D55C
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7D8331

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

Preview Lab → · Contrast checker → · Palette generator →

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