#7BAF31#7BAF31

#7BAF31 is a light, vivid yellow-green. Relative luminance 0.351; OKLCH L 69.3% C 0.163 H 129.5°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7BAF31
RGBrgb(123, 175, 49)
HSLhsl(85, 56%, 44%)
HSVhsv(85, 72%, 69%)
CMYKcmyk(29.7%, 0%, 72%, 31.4%)
CIE-LABlab(65.82, -36.41, 55.89)
CIE-LCHlch(65.82, 66.71, 123.08°)
OKLaboklab(69.3% -0.1036 0.1255)
OKLCHoklch(69.3% 0.163 129.5)
XYZxyz(24.0526, 35.0920, 8.4113)
Luminance0.3509 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7BAF31 #6531AF
analogous
#AFA431 #7BAF31 #3CAF31
triadic
#7BAF31 #317BAF #AF317B
tetradic
#7BAF31 #31AFA4 #6531AF #AF313C
square
#7BAF31 #31AFA4 #6531AF #AF313C
split-complementary
#7BAF31 #313CAF #A431AF
monochromatic
#384F16 #597F24 #7BAF31 #9ACE4F #B5DB7F

Accessibility & contrast

On white

2.62
#7BAF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#7BAF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7BAF31
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7BAF31#FFFFFF#000000##000000
##7BAF311.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A21B
Deuteranopia (green-blind)
#B09F3C
Tritanopia (blue-blind)
#7EA796
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #7baf31;
/* rgb */ color: rgb(123, 175, 49);
/* oklch */ color: oklch(69.3% 0.163 129.5);
Tailwind
colors: {
  custom: {
    50: '#a5c771',
    500: '#7baf31',
    950: '#000000',
  },
}
SCSS
$custom: #7baf31;
$custom-light: #a5c771;
$custom-dark: #000000;
JSON
{
  "hex": "#7baf31",
  "rgb": {
    "r": 123,
    "g": 175,
    "b": 49
  },
  "hsl": {
    "h": 84.762,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.69303,
    "c": 0.16275,
    "h": 129.5
  },
  "luminance": 0.35093
}

Semantic roles & 50–950 ramp

primary
#7BAF31
secondary
#9778C4
accent
#48E087
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101308
muted
#7F827B

Preview Lab

Preview with #7BAF31

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

Preview Lab → · Contrast checker → · Palette generator →

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