#7E8A30#7E8A30

#7E8A30 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.115 H 116.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7E8A30
RGBrgb(126, 138, 48)
HSLhsl(68, 48%, 36%)
HSVhsv(68, 65%, 54%)
CMYKcmyk(8.7%, 0%, 65.2%, 45.9%)
CIE-LABlab(54.89, -17.24, 45.11)
CIE-LCHlch(54.89, 48.30, 110.92°)
OKLaboklab(60.52% -0.051 0.1027)
OKLCHoklch(60.52% 0.115 116.4)
XYZxyz(18.2265, 22.8262, 6.2415)
Luminance0.2283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A30 #3C308A
analogous
#8A6930 #7E8A30 #518A30
triadic
#7E8A30 #307E8A #8A307E
tetradic
#7E8A30 #308A69 #3C308A #8A3051
square
#7E8A30 #308A69 #3C308A #8A3051
split-complementary
#7E8A30 #30518A #69308A
monochromatic
#2B2F10 #555D20 #7E8A30 #A7B740 #BECB69

Accessibility & contrast

On white

3.77
#7E8A30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#7E8A30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A30
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A30#FFFFFF#000000##000000
##7E8A301.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938324
Deuteranopia (green-blind)
#928436
Tritanopia (blue-blind)
#868277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a30;
/* rgb */ color: rgb(126, 138, 48);
/* oklch */ color: oklch(60.5% 0.115 116.4);
Tailwind
colors: {
  custom: {
    50: '#a6ac6d',
    500: '#7e8a30',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a30;
$custom-light: #a6ac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a30",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 48
  },
  "hsl": {
    "h": 68,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60521,
    "c": 0.11463,
    "h": 116.4
  },
  "luminance": 0.22826
}

Semantic roles & 50–950 ramp

primary
#7E8A30
secondary
#6E64B2
accent
#50D862
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8A30

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

Preview Lab → · Contrast checker → · Palette generator →

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