#7B8D28#7B8D28

#7B8D28 is a mid, vivid yellow-green. Relative luminance 0.234; OKLCH L 60.9% C 0.126 H 119.1°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7B8D28
RGBrgb(123, 141, 40)
HSLhsl(71, 56%, 35%)
HSVhsv(71, 72%, 55%)
CMYKcmyk(12.8%, 0%, 71.6%, 44.7%)
CIE-LABlab(55.50, -20.63, 49.01)
CIE-LCHlch(55.50, 53.17, 112.83°)
OKLaboklab(60.93% -0.061 0.1097)
OKLCHoklch(60.93% 0.126 119.1)
XYZxyz(18.0766, 23.4140, 5.5741)
Luminance0.2341 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8D28 #3A288D
analogous
#8D6C28 #7B8D28 #488D28
triadic
#7B8D28 #287B8D #8D287B
tetradic
#7B8D28 #288D6C #3A288D #8D2848
square
#7B8D28 #288D6C #3A288D #8D2848
split-complementary
#7B8D28 #28488D #6C288D
monochromatic
#282E0D #515D1A #7B8D28 #A5BD36 #BDD15E

Accessibility & contrast

On white

3.70
#7B8D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#7B8D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8D28
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8D28#FFFFFF#000000##000000
##7B8D281.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#968517
Deuteranopia (green-blind)
#948530
Tritanopia (blue-blind)
#828579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7b8d28;
/* rgb */ color: rgb(123, 141, 40);
/* oklch */ color: oklch(60.9% 0.126 119.1);
Tailwind
colors: {
  custom: {
    50: '#a4ae69',
    500: '#7b8d28',
    950: '#000000',
  },
}
SCSS
$custom: #7b8d28;
$custom-light: #a4ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8d28",
  "rgb": {
    "r": 123,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 70.693,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60928,
    "c": 0.12551,
    "h": 119.1
  },
  "luminance": 0.23414
}

Semantic roles & 50–950 ramp

primary
#7B8D28
secondary
#6B5AB7
accent
#49DF63
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7B8D28

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

Preview Lab → · Contrast checker → · Palette generator →

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