#7B951F#7B951F

#7B951F is a light, vivid yellow-green. Relative luminance 0.258; OKLCH L 62.8% C 0.141 H 121.8°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7B951F
RGBrgb(123, 149, 31)
HSLhsl(73, 66%, 35%)
HSVhsv(73, 79%, 58%)
CMYKcmyk(17.4%, 0%, 79.2%, 41.6%)
CIE-LABlab(57.85, -25.13, 54.46)
CIE-LCHlch(57.85, 59.98, 114.78°)
OKLaboklab(62.81% -0.0742 0.1196)
OKLCHoklch(62.81% 0.141 121.8)
XYZxyz(19.1635, 25.8047, 5.2673)
Luminance0.2581 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B951F #391F95
analogous
#95741F #7B951F #40951F
triadic
#7B951F #1F7B95 #951F7B
tetradic
#7B951F #1F9574 #391F95 #951F40
square
#7B951F #1F9574 #391F95 #951F40
split-complementary
#7B951F #1F4095 #741F95
monochromatic
#27300A #516214 #7B951F #A5C82A #BDDB53

Accessibility & contrast

On white

3.41
#7B951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#7B951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B951F
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B951F#FFFFFF#000000##000000
##7B951F1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8C00
Deuteranopia (green-blind)
#9B8B2B
Tritanopia (blue-blind)
#828D7F
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #7b951f;
/* rgb */ color: rgb(123, 149, 31);
/* oklch */ color: oklch(62.8% 0.141 121.8);
Tailwind
colors: {
  custom: {
    50: '#a5b465',
    500: '#7b951f',
    950: '#000000',
  },
}
SCSS
$custom: #7b951f;
$custom-light: #a5b465;
$custom-dark: #000000;
JSON
{
  "hex": "#7b951f",
  "rgb": {
    "r": 123,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 73.22,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.6281,
    "c": 0.14075,
    "h": 121.8
  },
  "luminance": 0.25805
}

Semantic roles & 50–950 ramp

primary
#7B951F
secondary
#6951BF
accent
#3FE965
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B951F

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

Preview Lab → · Contrast checker → · Palette generator →

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