#798418#798418

#798418 is a mid, vivid yellow. Relative luminance 0.206; OKLCH L 58.5% C 0.125 H 115.6°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#798418
RGBrgb(121, 132, 24)
HSLhsl(66, 69%, 31%)
HSVhsv(66, 82%, 52%)
CMYKcmyk(8.3%, 0%, 81.8%, 48.2%)
CIE-LABlab(52.55, -17.66, 51.76)
CIE-LCHlch(52.55, 54.69, 108.83°)
OKLaboklab(58.49% -0.0541 0.1127)
OKLCHoklch(58.49% 0.125 115.6)
XYZxyz(16.3018, 20.6337, 3.9879)
Luminance0.2063 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798418 #231884
analogous
#845918 #798418 #438418
triadic
#798418 #187984 #841879
tetradic
#798418 #188459 #231884 #841843
square
#798418 #188459 #231884 #841843
split-complementary
#798418 #184384 #591884
monochromatic
#1A1C05 #4A500F #798418 #A8B821 #CBDB3B

Accessibility & contrast

On white

4.10
#798418 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#798418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798418
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798418#FFFFFF#000000##000000
##7984181.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8D7E23
Tritanopia (blue-blind)
#817C70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798418;
/* rgb */ color: rgb(121, 132, 24);
/* oklch */ color: oklch(58.5% 0.125 115.6);
Tailwind
colors: {
  custom: {
    50: '#a3a760',
    500: '#798418',
    950: '#000000',
  },
}
SCSS
$custom: #798418;
$custom-light: #a3a760;
$custom-dark: #000000;
JSON
{
  "hex": "#798418",
  "rgb": {
    "r": 121,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 66.111,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58488,
    "c": 0.12501,
    "h": 115.6
  },
  "luminance": 0.20633
}

Semantic roles & 50–950 ramp

primary
#798418
secondary
#4C40B8
accent
#3CEC4E
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798418

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

Preview Lab → · Contrast checker → · Palette generator →

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