#7E8328#7E8328

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

Color values

HEX#7E8328
RGBrgb(126, 131, 40)
HSLhsl(63, 53%, 34%)
HSVhsv(63, 69%, 51%)
CMYKcmyk(3.8%, 0%, 69.5%, 48.6%)
CIE-LABlab(52.75, -14.07, 46.33)
CIE-LCHlch(52.75, 48.42, 106.89°)
OKLaboklab(58.79% -0.0429 0.104)
OKLCHoklch(58.79% 0.112 112.4)
XYZxyz(17.1040, 20.8218, 5.1251)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8328 #2D2883
analogous
#835A28 #7E8328 #508328
triadic
#7E8328 #287E83 #83287E
tetradic
#7E8328 #28835A #2D2883 #832850
square
#7E8328 #28835A #2D2883 #832850
split-complementary
#7E8328 #285083 #5A2883
monochromatic
#24250B #51541A #7E8328 #ABB236 #C6CC59

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8328#FFFFFF#000000##000000
##7E83281.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)
#8D7D1A
Deuteranopia (green-blind)
#8D7F2E
Tritanopia (blue-blind)
#877B71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e8328;
/* rgb */ color: rgb(126, 131, 40);
/* oklch */ color: oklch(58.8% 0.112 112.4);
Tailwind
colors: {
  custom: {
    50: '#a6a668',
    500: '#7e8328',
    950: '#000000',
  },
}
SCSS
$custom: #7e8328;
$custom-light: #a6a668;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8328",
  "rgb": {
    "r": 126,
    "g": 131,
    "b": 40
  },
  "hsl": {
    "h": 63.297,
    "s": 53.216,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58787,
    "c": 0.11247,
    "h": 112.4
  },
  "luminance": 0.20821
}

Semantic roles & 50–950 ramp

primary
#7E8328
secondary
#5A55B1
accent
#4BDD53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8328

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

Preview Lab → · Contrast checker → · Palette generator →

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