#45781F#45781F

#45781F is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 51.8% C 0.131 H 134.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#45781F
RGBrgb(69, 120, 31)
HSLhsl(94, 59%, 30%)
HSVhsv(94, 74%, 47%)
CMYKcmyk(42.5%, 0%, 74.2%, 52.9%)
CIE-LABlab(45.35, -33.09, 41.26)
CIE-LCHlch(45.35, 52.89, 128.73°)
OKLaboklab(51.78% -0.0924 0.0932)
OKLCHoklch(51.78% 0.131 134.8)
XYZxyz(9.4178, 14.7966, 3.6558)
Luminance0.1480 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45781F #521F78
analogous
#72781F #45781F #1F7826
triadic
#45781F #1F4578 #781F45
tetradic
#45781F #1F7278 #521F78 #78261F
square
#45781F #1F7278 #521F78 #78261F
split-complementary
#45781F #261F78 #781F72
monochromatic
#0E1806 #294712 #45781F #61A92C #7FCE43

Accessibility & contrast

On white

5.30
#45781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#45781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #45781F
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45781F#FFFFFF#000000##FFFFFF
##45781F1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E10
Deuteranopia (green-blind)
#766A27
Tritanopia (blue-blind)
#447367
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #45781f;
/* rgb */ color: rgb(69, 120, 31);
/* oklch */ color: oklch(51.8% 0.131 134.8);
Tailwind
colors: {
  custom: {
    50: '#7d9f61',
    500: '#45781f',
    950: '#000000',
  },
}
SCSS
$custom: #45781f;
$custom-light: #7d9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#45781f",
  "rgb": {
    "r": 69,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 94.382,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.51782,
    "c": 0.13125,
    "h": 134.8
  },
  "luminance": 0.14797
}

Semantic roles & 50–950 ramp

primary
#45781F
secondary
#8147AB
accent
#46E29F
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #45781F

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

Preview Lab → · Contrast checker → · Palette generator →

#45781F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva