#798012#798012

#798012 is a mid, vivid yellow. Relative luminance 0.195; OKLCH L 57.5% C 0.123 H 113.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#798012
RGBrgb(121, 128, 18)
HSLhsl(64, 75%, 29%)
HSVhsv(64, 86%, 50%)
CMYKcmyk(5.5%, 0%, 85.9%, 49.8%)
CIE-LABlab(51.32, -15.76, 52.37)
CIE-LCHlch(51.32, 54.69, 106.74°)
OKLaboklab(57.5% -0.0493 0.1129)
OKLCHoklch(57.5% 0.123 113.6)
XYZxyz(15.7140, 19.5473, 3.5174)
Luminance0.1955 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798012 #191280
analogous
#805012 #798012 #428012
triadic
#798012 #127980 #801279
tetradic
#798012 #128050 #191280 #801242
square
#798012 #128050 #191280 #801242
split-complementary
#798012 #124280 #501280
monochromatic
#191B04 #464A0A #798012 #ACB61A #D6E12B

Accessibility & contrast

On white

4.28
#798012 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#798012 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798012
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798012#FFFFFF#000000##000000
##7980121.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7B1E
Tritanopia (blue-blind)
#82786D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #798012;
/* rgb */ color: rgb(121, 128, 18);
/* oklch */ color: oklch(57.5% 0.123 113.6);
Tailwind
colors: {
  custom: {
    50: '#a3a45d',
    500: '#798012',
    950: '#000000',
  },
}
SCSS
$custom: #798012;
$custom-light: #a3a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#798012",
  "rgb": {
    "r": 121,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 63.818,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.57497,
    "c": 0.1232,
    "h": 113.6
  },
  "luminance": 0.19547
}

Semantic roles & 50–950 ramp

primary
#798012
secondary
#4038B6
accent
#36F242
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798012

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

Preview Lab → · Contrast checker → · Palette generator →

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