#7E8231#7E8231

#7E8231 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.6% C 0.104 H 111.9°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7E8231
RGBrgb(126, 130, 49)
HSLhsl(63, 45%, 35%)
HSVhsv(63, 62%, 51%)
CMYKcmyk(3.1%, 0%, 62.3%, 49%)
CIE-LABlab(52.53, -12.91, 42.13)
CIE-LCHlch(52.53, 44.06, 107.04°)
OKLaboklab(58.64% -0.0387 0.0965)
OKLCHoklch(58.64% 0.104 111.9)
XYZxyz(17.1416, 20.6230, 5.9828)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8231 #353182
analogous
#825D31 #7E8231 #558231
triadic
#7E8231 #317E82 #82317E
tetradic
#7E8231 #31825D #353182 #823155
square
#7E8231 #31825D #353182 #823155
split-complementary
#7E8231 #315582 #5D3182
monochromatic
#28290F #535620 #7E8231 #A9AE42 #C1C668

Accessibility & contrast

On white

4.10
#7E8231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#7E8231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8231
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8231#FFFFFF#000000##000000
##7E82311.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C28
Deuteranopia (green-blind)
#8C7E36
Tritanopia (blue-blind)
#867A71
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7e8231;
/* rgb */ color: rgb(126, 130, 49);
/* oklch */ color: oklch(58.6% 0.104 111.9);
Tailwind
colors: {
  custom: {
    50: '#a6a66d',
    500: '#7e8231',
    950: '#000000',
  },
}
SCSS
$custom: #7e8231;
$custom-light: #a6a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8231",
  "rgb": {
    "r": 126,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 62.963,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.58635,
    "c": 0.10398,
    "h": 111.9
  },
  "luminance": 0.20623
}

Semantic roles & 50–950 ramp

primary
#7E8231
secondary
#6562AD
accent
#53D559
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E8231

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

Preview Lab → · Contrast checker → · Palette generator →

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