#768217#768217

#768217 is a mid, vivid yellow. Relative luminance 0.199; OKLCH L 57.7% C 0.124 H 116.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#768217
RGBrgb(118, 130, 23)
HSLhsl(67, 70%, 30%)
HSVhsv(67, 82%, 51%)
CMYKcmyk(9.2%, 0%, 82.3%, 49%)
CIE-LABlab(51.70, -18.00, 51.22)
CIE-LCHlch(51.70, 54.29, 109.36°)
OKLaboklab(57.75% -0.055 0.1115)
OKLCHoklch(57.75% 0.124 116.3)
XYZxyz(15.6089, 19.8789, 3.8252)
Luminance0.1988 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#768217 #231782
analogous
#825917 #768217 #408217
triadic
#768217 #177682 #821776
tetradic
#768217 #178259 #231782 #821740
square
#768217 #178259 #231782 #821740
split-complementary
#768217 #174082 #591782
monochromatic
#181A05 #474E0E #768217 #A5B620 #C9DC38

Accessibility & contrast

On white

4.22
#768217 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#768217 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #768217
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##768217#FFFFFF#000000##000000
##7682171.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8B7C22
Tritanopia (blue-blind)
#7E7A6F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #768217;
/* rgb */ color: rgb(118, 130, 23);
/* oklch */ color: oklch(57.7% 0.124 116.3);
Tailwind
colors: {
  custom: {
    50: '#a1a65f',
    500: '#768217',
    950: '#000000',
  },
}
SCSS
$custom: #768217;
$custom-light: #a1a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#768217",
  "rgb": {
    "r": 118,
    "g": 130,
    "b": 23
  },
  "hsl": {
    "h": 66.729,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.57747,
    "c": 0.12428,
    "h": 116.3
  },
  "luminance": 0.19879
}

Semantic roles & 50–950 ramp

primary
#768217
secondary
#4C3EB6
accent
#3BED4F
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #768217

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

Preview Lab → · Contrast checker → · Palette generator →

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