#7E8523#7E8523

#7E8523 is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.2% C 0.118 H 113.5°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7E8523
RGBrgb(126, 133, 35)
HSLhsl(64, 58%, 33%)
HSVhsv(64, 74%, 52%)
CMYKcmyk(5.3%, 0%, 73.7%, 47.8%)
CIE-LABlab(53.31, -15.42, 48.87)
CIE-LCHlch(53.31, 51.24, 107.51°)
OKLaboklab(59.22% -0.0472 0.1084)
OKLCHoklch(59.22% 0.118 113.5)
XYZxyz(17.2956, 21.3324, 4.7962)
Luminance0.2133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8523 #2A2385
analogous
#855B23 #7E8523 #4D8523
triadic
#7E8523 #237E85 #85237E
tetradic
#7E8523 #23855B #2A2385 #85234D
square
#7E8523 #23855B #2A2385 #85234D
split-complementary
#7E8523 #234D85 #5B2385
monochromatic
#222409 #505516 #7E8523 #ACB530 #C8D151

Accessibility & contrast

On white

3.99
#7E8523 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7E8523 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8523
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8523#FFFFFF#000000##000000
##7E85231.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E11
Deuteranopia (green-blind)
#8F802B
Tritanopia (blue-blind)
#877D72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e8523;
/* rgb */ color: rgb(126, 133, 35);
/* oklch */ color: oklch(59.2% 0.118 113.5);
Tailwind
colors: {
  custom: {
    50: '#a6a865',
    500: '#7e8523',
    950: '#000000',
  },
}
SCSS
$custom: #7e8523;
$custom-light: #a6a865;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8523",
  "rgb": {
    "r": 126,
    "g": 133,
    "b": 35
  },
  "hsl": {
    "h": 64.286,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59222,
    "c": 0.11825,
    "h": 113.5
  },
  "luminance": 0.21332
}

Semantic roles & 50–950 ramp

primary
#7E8523
secondary
#564FB5
accent
#46E251
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8523

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

Preview Lab → · Contrast checker → · Palette generator →

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