#7D931B#7D931B

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

Color values

HEX#7D931B
RGBrgb(125, 147, 27)
HSLhsl(71, 69%, 34%)
HSVhsv(71, 82%, 58%)
CMYKcmyk(15%, 0%, 81.6%, 42.4%)
CIE-LABlab(57.37, -23.45, 55.29)
CIE-LCHlch(57.37, 60.06, 112.98°)
OKLaboklab(62.45% -0.07 0.1206)
OKLCHoklch(62.45% 0.139 120.1)
XYZxyz(19.0894, 25.3066, 4.9157)
Luminance0.2531 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D931B #311B93
analogous
#936D1B #7D931B #41931B
triadic
#7D931B #1B7D93 #931B7D
tetradic
#7D931B #1B936D #311B93 #931B41
square
#7D931B #1B936D #311B93 #931B41
split-complementary
#7D931B #1B4193 #6D1B93
monochromatic
#252C08 #515F12 #7D931B #A9C724 #C3DE4B

Accessibility & contrast

On white

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

On black

6.06
#7D931B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D931B
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D931B#FFFFFF#000000##000000
##7D931B1.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d931b;
/* rgb */ color: rgb(125, 147, 27);
/* oklch */ color: oklch(62.5% 0.139 120.1);
Tailwind
colors: {
  custom: {
    50: '#a6b263',
    500: '#7d931b',
    950: '#000000',
  },
}
SCSS
$custom: #7d931b;
$custom-light: #a6b263;
$custom-dark: #000000;
JSON
{
  "hex": "#7d931b",
  "rgb": {
    "r": 125,
    "g": 147,
    "b": 27
  },
  "hsl": {
    "h": 71,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.62454,
    "c": 0.13945,
    "h": 120.1
  },
  "luminance": 0.25307
}

Semantic roles & 50–950 ramp

primary
#7D931B
secondary
#604AC0
accent
#3CEC5C
background
#FAFAF6
surface
#F4F5EB
border
#CECFC6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7D931B

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

Preview Lab → · Contrast checker → · Palette generator →

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