#768A1F#768A1F

#768A1F is a mid, vivid yellow-green. Relative luminance 0.221; OKLCH L 59.7% C 0.130 H 120.0°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#768A1F
RGBrgb(118, 138, 31)
HSLhsl(71, 63%, 33%)
HSVhsv(71, 78%, 54%)
CMYKcmyk(14.5%, 0%, 77.5%, 45.9%)
CIE-LABlab(54.16, -21.78, 50.90)
CIE-LCHlch(54.16, 55.37, 113.16°)
OKLaboklab(59.74% -0.0647 0.1122)
OKLCHoklch(59.74% 0.13 120)
XYZxyz(16.8073, 22.1275, 4.6817)
Luminance0.2213 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#768A1F #331F8A
analogous
#8A681F #768A1F #408A1F
triadic
#768A1F #1F768A #8A1F76
tetradic
#768A1F #1F8A68 #331F8A #8A1F40
square
#768A1F #1F8A68 #331F8A #8A1F40
split-complementary
#768A1F #1F408A #681F8A
monochromatic
#212609 #4B5814 #768A1F #A1BC2A #BDD74C

Accessibility & contrast

On white

3.87
#768A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#768A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #768A1F
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##768A1F#FFFFFF#000000##000000
##768A1F1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938205
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#7D8276
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #768a1f;
/* rgb */ color: rgb(118, 138, 31);
/* oklch */ color: oklch(59.7% 0.130 120.0);
Tailwind
colors: {
  custom: {
    50: '#a1ac64',
    500: '#768a1f',
    950: '#000000',
  },
}
SCSS
$custom: #768a1f;
$custom-light: #a1ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#768a1f",
  "rgb": {
    "r": 118,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 71.215,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59742,
    "c": 0.12956,
    "h": 120
  },
  "luminance": 0.22127
}

Semantic roles & 50–950 ramp

primary
#768A1F
secondary
#604BBA
accent
#41E660
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #768A1F

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

Preview Lab → · Contrast checker → · Palette generator →

#768A1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva