#7E931B#7E931B

#7E931B is a light, vivid yellow-green. Relative luminance 0.254; OKLCH L 62.5% C 0.139 H 119.7°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7E931B
RGBrgb(126, 147, 27)
HSLhsl(71, 69%, 34%)
HSVhsv(71, 82%, 58%)
CMYKcmyk(14.3%, 0%, 81.6%, 42.4%)
CIE-LABlab(57.45, -23.02, 55.38)
CIE-LCHlch(57.45, 59.98, 112.57°)
OKLaboklab(62.53% -0.0689 0.1208)
OKLCHoklch(62.53% 0.139 119.7)
XYZxyz(19.2361, 25.3823, 4.9226)
Luminance0.2538 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E931B #301B93
analogous
#936C1B #7E931B #42931B
triadic
#7E931B #1B7E93 #931B7E
tetradic
#7E931B #1B936C #301B93 #931B42
square
#7E931B #1B936C #301B93 #931B42
split-complementary
#7E931B #1B4293 #6C1B93
monochromatic
#252C08 #525F12 #7E931B #AAC724 #C4DE4B

Accessibility & contrast

On white

3.46
#7E931B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#7E931B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E931B
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E931B#FFFFFF#000000##000000
##7E931B1.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#9A8A27
Tritanopia (blue-blind)
#868B7D
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #7e931b;
/* rgb */ color: rgb(126, 147, 27);
/* oklch */ color: oklch(62.5% 0.139 119.7);
Tailwind
colors: {
  custom: {
    50: '#a7b264',
    500: '#7e931b',
    950: '#000000',
  },
}
SCSS
$custom: #7e931b;
$custom-light: #a7b264;
$custom-dark: #000000;
JSON
{
  "hex": "#7e931b",
  "rgb": {
    "r": 126,
    "g": 147,
    "b": 27
  },
  "hsl": {
    "h": 70.5,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.62532,
    "c": 0.13903,
    "h": 119.7
  },
  "luminance": 0.25382
}

Semantic roles & 50–950 ramp

primary
#7E931B
secondary
#5F4AC0
accent
#3CEC5B
background
#FAFAF6
surface
#F4F5EB
border
#CECFC6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E931B

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

Preview Lab → · Contrast checker → · Palette generator →

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