#7E8335#7E8335

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

Color values

HEX#7E8335
RGBrgb(126, 131, 53)
HSLhsl(64, 42%, 36%)
HSVhsv(64, 60%, 51%)
CMYKcmyk(3.8%, 0%, 59.5%, 48.6%)
CIE-LABlab(52.87, -13.14, 40.61)
CIE-LCHlch(52.87, 42.68, 107.93°)
OKLaboklab(58.91% -0.0389 0.0938)
OKLCHoklch(58.91% 0.102 112.5)
XYZxyz(17.3635, 20.9256, 6.4918)
Luminance0.2092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8335 #3A3583
analogous
#836135 #7E8335 #578335
triadic
#7E8335 #357E83 #83357E
tetradic
#7E8335 #358361 #3A3583 #833557
square
#7E8335 #358361 #3A3583 #833557
split-complementary
#7E8335 #355783 #613583
monochromatic
#2A2C12 #545723 #7E8335 #A8AF47 #BFC46E

Accessibility & contrast

On white

4.05
#7E8335 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#7E8335 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8335
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8335#FFFFFF#000000##000000
##7E83351.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7D2D
Deuteranopia (green-blind)
#8C7F3A
Tritanopia (blue-blind)
#867C72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e8335;
/* rgb */ color: rgb(126, 131, 53);
/* oklch */ color: oklch(58.9% 0.102 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a66f',
    500: '#7e8335',
    950: '#000000',
  },
}
SCSS
$custom: #7e8335;
$custom-light: #a5a66f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8335",
  "rgb": {
    "r": 126,
    "g": 131,
    "b": 53
  },
  "hsl": {
    "h": 63.846,
    "s": 42.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58915,
    "c": 0.10156,
    "h": 112.5
  },
  "luminance": 0.20925
}

Semantic roles & 50–950 ramp

primary
#7E8335
secondary
#6C67AD
accent
#56D25E
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E8335

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

Preview Lab → · Contrast checker → · Palette generator →

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