#7E8235#7E8235

#7E8235 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.7% C 0.100 H 111.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7E8235
RGBrgb(126, 130, 53)
HSLhsl(63, 42%, 36%)
HSVhsv(63, 59%, 51%)
CMYKcmyk(3.1%, 0%, 59.2%, 49%)
CIE-LABlab(52.57, -12.60, 40.28)
CIE-LCHlch(52.57, 42.20, 107.37°)
OKLaboklab(58.68% -0.0374 0.0931)
OKLCHoklch(58.68% 0.1 111.9)
XYZxyz(17.2298, 20.6583, 6.4473)
Luminance0.2066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8235 #393582
analogous
#825F35 #7E8235 #578235
triadic
#7E8235 #357E82 #82357E
tetradic
#7E8235 #35825F #393582 #823557
square
#7E8235 #35825F #393582 #823557
split-complementary
#7E8235 #355782 #5F3582
monochromatic
#2A2B12 #545723 #7E8235 #A8AD47 #BFC46E

Accessibility & contrast

On white

4.09
#7E8235 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#7E8235 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8235
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8235#FFFFFF#000000##000000
##7E82351.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7C2D
Deuteranopia (green-blind)
#8C7E3A
Tritanopia (blue-blind)
#867B71
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7e8235;
/* rgb */ color: rgb(126, 130, 53);
/* oklch */ color: oklch(58.7% 0.100 111.9);
Tailwind
colors: {
  custom: {
    50: '#a5a66f',
    500: '#7e8235',
    950: '#000000',
  },
}
SCSS
$custom: #7e8235;
$custom-light: #a5a66f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8235",
  "rgb": {
    "r": 126,
    "g": 130,
    "b": 53
  },
  "hsl": {
    "h": 63.117,
    "s": 42.077,
    "l": 35.882
  },
  "oklch": {
    "l": 0.58679,
    "c": 0.10033,
    "h": 111.9
  },
  "luminance": 0.20658
}

Semantic roles & 50–950 ramp

primary
#7E8235
secondary
#6A67AC
accent
#56D25C
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E8235

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

Preview Lab → · Contrast checker → · Palette generator →

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