#768C1F#768C1F

#768C1F is a mid, vivid yellow-green. Relative luminance 0.227; OKLCH L 60.2% C 0.132 H 120.8°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#768C1F
RGBrgb(118, 140, 31)
HSLhsl(72, 64%, 34%)
HSVhsv(72, 78%, 55%)
CMYKcmyk(15.7%, 0%, 77.9%, 45.1%)
CIE-LABlab(54.77, -22.79, 51.47)
CIE-LCHlch(54.77, 56.29, 113.88°)
OKLaboklab(60.23% -0.0675 0.1134)
OKLCHoklch(60.23% 0.132 120.8)
XYZxyz(17.0969, 22.7067, 4.7782)
Luminance0.2271 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#768C1F #351F8C
analogous
#8C6B1F #768C1F #3F8C1F
triadic
#768C1F #1F768C #8C1F76
tetradic
#768C1F #1F8C6B #351F8C #8C1F3F
square
#768C1F #1F8C6B #351F8C #8C1F3F
split-complementary
#768C1F #1F3F8C #6B1F8C
monochromatic
#222809 #4C5A14 #768C1F #A0BE2A #BCD84E

Accessibility & contrast

On white

3.79
#768C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#768C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #768C1F
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##768C1F#FFFFFF#000000##000000
##768C1F1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#958304
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#7D8478
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #768c1f;
/* rgb */ color: rgb(118, 140, 31);
/* oklch */ color: oklch(60.2% 0.132 120.8);
Tailwind
colors: {
  custom: {
    50: '#a1ad64',
    500: '#768c1f',
    950: '#000000',
  },
}
SCSS
$custom: #768c1f;
$custom-light: #a1ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#768c1f",
  "rgb": {
    "r": 118,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 72.11,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60231,
    "c": 0.132,
    "h": 120.8
  },
  "luminance": 0.22707
}

Semantic roles & 50–950 ramp

primary
#768C1F
secondary
#634CBB
accent
#41E762
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #768C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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