#7E8331#7E8331

#7E8331 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 58.9% C 0.105 H 112.5°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7E8331
RGBrgb(126, 131, 49)
HSLhsl(64, 46%, 35%)
HSVhsv(64, 63%, 51%)
CMYKcmyk(3.8%, 0%, 62.6%, 48.6%)
CIE-LABlab(52.83, -13.45, 42.45)
CIE-LCHlch(52.83, 44.53, 107.58°)
OKLaboklab(58.87% -0.0402 0.0972)
OKLCHoklch(58.87% 0.105 112.5)
XYZxyz(17.2753, 20.8903, 6.0273)
Luminance0.2089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8331 #363183
analogous
#835F31 #7E8331 #558331
triadic
#7E8331 #317E83 #83317E
tetradic
#7E8331 #31835F #363183 #833155
square
#7E8331 #31835F #363183 #833155
split-complementary
#7E8331 #315583 #5F3183
monochromatic
#282A10 #535620 #7E8331 #A9B042 #C1C668

Accessibility & contrast

On white

4.06
#7E8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#7E8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8331
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8331#FFFFFF#000000##000000
##7E83311.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D27
Deuteranopia (green-blind)
#8D7F36
Tritanopia (blue-blind)
#867B72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e8331;
/* rgb */ color: rgb(126, 131, 49);
/* oklch */ color: oklch(58.9% 0.105 112.5);
Tailwind
colors: {
  custom: {
    50: '#a6a66d',
    500: '#7e8331',
    950: '#000000',
  },
}
SCSS
$custom: #7e8331;
$custom-light: #a6a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8331",
  "rgb": {
    "r": 126,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 63.659,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58871,
    "c": 0.10518,
    "h": 112.5
  },
  "luminance": 0.2089
}

Semantic roles & 50–950 ramp

primary
#7E8331
secondary
#6762AE
accent
#53D55B
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E8331

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

Preview Lab → · Contrast checker → · Palette generator →

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