#768227#768227

#768227 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 57.9% C 0.115 H 116.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#768227
RGBrgb(118, 130, 39)
HSLhsl(68, 54%, 33%)
HSVhsv(68, 70%, 51%)
CMYKcmyk(9.2%, 0%, 70%, 49%)
CIE-LABlab(51.80, -17.18, 45.56)
CIE-LCHlch(51.80, 48.69, 110.66°)
OKLaboklab(57.86% -0.0512 0.1024)
OKLCHoklch(57.86% 0.115 116.6)
XYZxyz(15.8204, 19.9635, 4.9390)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#768227 #332782
analogous
#826027 #768227 #488227
triadic
#768227 #277682 #822776
tetradic
#768227 #278260 #332782 #822748
square
#768227 #278260 #332782 #822748
split-complementary
#768227 #274882 #602782
monochromatic
#21240B #4B5319 #768227 #A1B135 #BDCD57

Accessibility & contrast

On white

4.21
#768227 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#768227 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #768227
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##768227#FFFFFF#000000##000000
##7682271.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B19
Deuteranopia (green-blind)
#8A7C2E
Tritanopia (blue-blind)
#7D7B70
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #768227;
/* rgb */ color: rgb(118, 130, 39);
/* oklch */ color: oklch(57.9% 0.115 116.6);
Tailwind
colors: {
  custom: {
    50: '#a0a667',
    500: '#768227',
    950: '#000000',
  },
}
SCSS
$custom: #768227;
$custom-light: #a0a667;
$custom-dark: #000000;
JSON
{
  "hex": "#768227",
  "rgb": {
    "r": 118,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 67.912,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57855,
    "c": 0.11451,
    "h": 116.6
  },
  "luminance": 0.19963
}

Semantic roles & 50–950 ramp

primary
#768227
secondary
#6053B1
accent
#4BDD5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #768227

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

Preview Lab → · Contrast checker → · Palette generator →

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