#7E8531#7E8531

#7E8531 is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.3% C 0.108 H 113.7°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#7E8531
RGBrgb(126, 133, 49)
HSLhsl(65, 46%, 36%)
HSVhsv(65, 63%, 52%)
CMYKcmyk(5.3%, 0%, 63.2%, 47.8%)
CIE-LABlab(53.42, -14.52, 43.09)
CIE-LCHlch(53.42, 45.47, 108.63°)
OKLaboklab(59.34% -0.0432 0.0985)
OKLCHoklch(59.34% 0.108 113.7)
XYZxyz(17.5465, 21.4328, 6.1177)
Luminance0.2143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8531 #383185
analogous
#856231 #7E8531 #548531
triadic
#7E8531 #317E85 #85317E
tetradic
#7E8531 #318562 #383185 #853154
square
#7E8531 #318562 #383185 #853154
split-complementary
#7E8531 #315485 #623185
monochromatic
#292C10 #545821 #7E8531 #A8B241 #C0C869

Accessibility & contrast

On white

3.97
#7E8531 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#7E8531 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8531
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8531#FFFFFF#000000##000000
##7E85311.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F27
Deuteranopia (green-blind)
#8E8036
Tritanopia (blue-blind)
#867D73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e8531;
/* rgb */ color: rgb(126, 133, 49);
/* oklch */ color: oklch(59.3% 0.108 113.7);
Tailwind
colors: {
  custom: {
    50: '#a6a86d',
    500: '#7e8531',
    950: '#000000',
  },
}
SCSS
$custom: #7e8531;
$custom-light: #a6a86d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8531",
  "rgb": {
    "r": 126,
    "g": 133,
    "b": 49
  },
  "hsl": {
    "h": 65,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59344,
    "c": 0.10761,
    "h": 113.7
  },
  "luminance": 0.21432
}

Semantic roles & 50–950 ramp

primary
#7E8531
secondary
#6963AF
accent
#52D65D
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E8531

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

Preview Lab → · Contrast checker → · Palette generator →

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