#798F12#798F12

#798F12 is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.1% C 0.140 H 120.2°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#798F12
RGBrgb(121, 143, 18)
HSLhsl(71, 78%, 32%)
HSVhsv(71, 87%, 56%)
CMYKcmyk(15.4%, 0%, 87.4%, 43.9%)
CIE-LABlab(55.84, -23.50, 56.19)
CIE-LCHlch(55.84, 60.90, 112.70°)
OKLaboklab(61.13% -0.0705 0.1212)
OKLCHoklch(61.13% 0.14 120.2)
XYZxyz(17.8172, 23.7536, 4.2184)
Luminance0.2375 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F12 #28128F
analogous
#8F6712 #798F12 #3B8F12
triadic
#798F12 #12798F #8F1279
tetradic
#798F12 #128F67 #28128F #8F123B
square
#798F12 #128F67 #28128F #8F123B
split-complementary
#798F12 #123B8F #67128F
monochromatic
#1D2204 #4B590B #798F12 #A7C519 #C7E636

Accessibility & contrast

On white

3.65
#798F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#798F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F12
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F12#FFFFFF#000000##000000
##798F121.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#968621
Tritanopia (blue-blind)
#818779
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f12;
/* rgb */ color: rgb(121, 143, 18);
/* oklch */ color: oklch(61.1% 0.140 120.2);
Tailwind
colors: {
  custom: {
    50: '#a3af60',
    500: '#798f12',
    950: '#000000',
  },
}
SCSS
$custom: #798f12;
$custom-light: #a3af60;
$custom-dark: #000000;
JSON
{
  "hex": "#798f12",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 70.56,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61133,
    "c": 0.14019,
    "h": 120.2
  },
  "luminance": 0.23754
}

Semantic roles & 50–950 ramp

primary
#798F12
secondary
#523AC3
accent
#34F456
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798F12

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

Preview Lab → · Contrast checker → · Palette generator →

#798F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva