#7BA228#7BA228

#7BA228 is a light, vivid yellow-green. Relative luminance 0.302; OKLCH L 66.0% C 0.152 H 126.1°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#7BA228
RGBrgb(123, 162, 40)
HSLhsl(79, 60%, 40%)
HSVhsv(79, 75%, 64%)
CMYKcmyk(24.1%, 0%, 75.3%, 36.5%)
CIE-LABlab(61.83, -30.96, 55.21)
CIE-LCHlch(61.83, 63.30, 119.28°)
OKLaboklab(66.05% -0.0894 0.1227)
OKLCHoklch(66.05% 0.152 126.1)
XYZxyz(21.4718, 30.2045, 6.7059)
Luminance0.3020 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7BA228 #4F28A2
analogous
#A28C28 #7BA228 #3EA228
triadic
#7BA228 #287BA2 #A2287B
tetradic
#7BA228 #28A28C #4F28A2 #A2283E
square
#7BA228 #28A28C #4F28A2 #A2283E
split-complementary
#7BA228 #283EA2 #8C28A2
monochromatic
#304010 #56711C #7BA228 #9ECE39 #B6DA6A

Accessibility & contrast

On white

2.98
#7BA228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#7BA228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7BA228
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7BA228#FFFFFF#000000##000000
##7BA2281.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB970D
Deuteranopia (green-blind)
#A69534
Tritanopia (blue-blind)
#809A8B
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #7ba228;
/* rgb */ color: rgb(123, 162, 40);
/* oklch */ color: oklch(66.0% 0.152 126.1);
Tailwind
colors: {
  custom: {
    50: '#a5bd6b',
    500: '#7ba228',
    950: '#000000',
  },
}
SCSS
$custom: #7ba228;
$custom-light: #a5bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7ba228",
  "rgb": {
    "r": 123,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 79.18,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.66045,
    "c": 0.15183,
    "h": 126.1
  },
  "luminance": 0.30205
}

Semantic roles & 50–950 ramp

primary
#7BA228
secondary
#8265C1
accent
#44E477
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7BA228

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

Preview Lab → · Contrast checker → · Palette generator →

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