#768B1F#768B1F

#768B1F is a mid, vivid yellow-green. Relative luminance 0.224; OKLCH L 60.0% C 0.131 H 120.4°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#768B1F
RGBrgb(118, 139, 31)
HSLhsl(72, 64%, 33%)
HSVhsv(72, 78%, 55%)
CMYKcmyk(15.1%, 0%, 77.7%, 45.5%)
CIE-LABlab(54.47, -22.29, 51.19)
CIE-LCHlch(54.47, 55.83, 113.53°)
OKLaboklab(59.99% -0.0661 0.1128)
OKLCHoklch(59.99% 0.131 120.4)
XYZxyz(16.9515, 22.4158, 4.7297)
Luminance0.2242 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#768B1F #341F8B
analogous
#8B6A1F #768B1F #408B1F
triadic
#768B1F #1F768B #8B1F76
tetradic
#768B1F #1F8B6A #341F8B #8B1F40
square
#768B1F #1F8B6A #341F8B #8B1F40
split-complementary
#768B1F #1F408B #6A1F8B
monochromatic
#212709 #4C5914 #768B1F #A0BD2A #BCD74D

Accessibility & contrast

On white

3.83
#768B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#768B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #768B1F
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##768B1F#FFFFFF#000000##000000
##768B1F1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#948304
Deuteranopia (green-blind)
#928229
Tritanopia (blue-blind)
#7D8377
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #768b1f;
/* rgb */ color: rgb(118, 139, 31);
/* oklch */ color: oklch(60.0% 0.131 120.4);
Tailwind
colors: {
  custom: {
    50: '#a1ac64',
    500: '#768b1f',
    950: '#000000',
  },
}
SCSS
$custom: #768b1f;
$custom-light: #a1ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#768b1f",
  "rgb": {
    "r": 118,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 71.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59986,
    "c": 0.13078,
    "h": 120.4
  },
  "luminance": 0.22416
}

Semantic roles & 50–950 ramp

primary
#768B1F
secondary
#614CBA
accent
#41E761
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #768B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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