#768012#768012

#768012 is a mid, vivid yellow. Relative luminance 0.193; OKLCH L 57.2% C 0.124 H 115.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#768012
RGBrgb(118, 128, 18)
HSLhsl(65, 75%, 29%)
HSVhsv(65, 86%, 50%)
CMYKcmyk(7.8%, 0%, 85.9%, 49.8%)
CIE-LABlab(51.08, -17.13, 52.07)
CIE-LCHlch(51.08, 54.81, 108.21°)
OKLaboklab(57.24% -0.0529 0.1124)
OKLCHoklch(57.24% 0.124 115.2)
XYZxyz(15.3000, 19.3338, 3.4980)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#768012 #1C1280
analogous
#805312 #768012 #3F8012
triadic
#768012 #127680 #801276
tetradic
#768012 #128053 #1C1280 #80123F
square
#768012 #128053 #1C1280 #80123F
split-complementary
#768012 #123F80 #531280
monochromatic
#191B04 #454A0A #768012 #A7B61A #D1E12B

Accessibility & contrast

On white

4.31
#768012 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#768012 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #768012
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##768012#FFFFFF#000000##000000
##7680121.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#897A1E
Tritanopia (blue-blind)
#7E786D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #768012;
/* rgb */ color: rgb(118, 128, 18);
/* oklch */ color: oklch(57.2% 0.124 115.2);
Tailwind
colors: {
  custom: {
    50: '#a1a45d',
    500: '#768012',
    950: '#000000',
  },
}
SCSS
$custom: #768012;
$custom-light: #a1a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#768012",
  "rgb": {
    "r": 118,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 65.455,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.57239,
    "c": 0.12422,
    "h": 115.2
  },
  "luminance": 0.19334
}

Semantic roles & 50–950 ramp

primary
#768012
secondary
#4438B6
accent
#36F247
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #768012

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

Preview Lab → · Contrast checker → · Palette generator →

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