#789231#789231

#789231 is a mid, vivid yellow-green. Relative luminance 0.248; OKLCH L 62.0% C 0.127 H 123.0°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#789231
RGBrgb(120, 146, 49)
HSLhsl(76, 50%, 38%)
HSVhsv(76, 66%, 57%)
CMYKcmyk(17.8%, 0%, 66.4%, 42.7%)
CIE-LABlab(56.85, -23.84, 46.62)
CIE-LCHlch(56.85, 52.36, 117.09°)
OKLaboklab(61.99% -0.0689 0.1061)
OKLCHoklch(61.99% 0.127 123)
XYZxyz(18.5792, 24.7725, 6.7079)
Luminance0.2477 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#789231 #4B3192
analogous
#927B31 #789231 #489231
triadic
#789231 #317892 #923178
tetradic
#789231 #31927B #4B3192 #923148
square
#789231 #31927B #4B3192 #923148
split-complementary
#789231 #314892 #7B3192
monochromatic
#2D3612 #526422 #789231 #9DBF41 #B5CF6F

Accessibility & contrast

On white

3.53
#789231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#789231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #789231
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##789231#FFFFFF#000000##000000
##7892311.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8924
Deuteranopia (green-blind)
#978838
Tritanopia (blue-blind)
#7E8B7E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #789231;
/* rgb */ color: rgb(120, 146, 49);
/* oklch */ color: oklch(62.0% 0.127 123.0);
Tailwind
colors: {
  custom: {
    50: '#a2b26e',
    500: '#789231',
    950: '#000000',
  },
}
SCSS
$custom: #789231;
$custom-light: #a2b26e;
$custom-dark: #000000;
JSON
{
  "hex": "#789231",
  "rgb": {
    "r": 120,
    "g": 146,
    "b": 49
  },
  "hsl": {
    "h": 76.082,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.61988,
    "c": 0.12651,
    "h": 123
  },
  "luminance": 0.24773
}

Semantic roles & 50–950 ramp

primary
#789231
secondary
#7D69B6
accent
#4FD974
background
#FAFAF6
surface
#F4F5EC
border
#CECFC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #789231

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

Preview Lab → · Contrast checker → · Palette generator →

#789231 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva