#798318#798318

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

Color values

HEX#798318
RGBrgb(121, 131, 24)
HSLhsl(66, 69%, 30%)
HSVhsv(66, 82%, 51%)
CMYKcmyk(7.6%, 0%, 81.7%, 48.6%)
CIE-LABlab(52.25, -17.13, 51.50)
CIE-LCHlch(52.25, 54.27, 108.40°)
OKLaboklab(58.25% -0.0527 0.1121)
OKLCHoklch(58.25% 0.124 115.2)
XYZxyz(16.1668, 20.3638, 3.9429)
Luminance0.2036 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798318 #221883
analogous
#835718 #798318 #448318
triadic
#798318 #187983 #831879
tetradic
#798318 #188357 #221883 #831844
square
#798318 #188357 #221883 #831844
split-complementary
#798318 #184483 #571883
monochromatic
#191C05 #494F0F #798318 #A9B721 #CCDB3A

Accessibility & contrast

On white

4.14
#798318 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#798318 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798318
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798318#FFFFFF#000000##000000
##7983181.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#8C7D22
Tritanopia (blue-blind)
#817B70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798318;
/* rgb */ color: rgb(121, 131, 24);
/* oklch */ color: oklch(58.2% 0.124 115.2);
Tailwind
colors: {
  custom: {
    50: '#a3a660',
    500: '#798318',
    950: '#000000',
  },
}
SCSS
$custom: #798318;
$custom-light: #a3a660;
$custom-dark: #000000;
JSON
{
  "hex": "#798318",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 65.607,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58247,
    "c": 0.12388,
    "h": 115.2
  },
  "luminance": 0.20363
}

Semantic roles & 50–950 ramp

primary
#798318
secondary
#4B40B7
accent
#3CEC4C
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798318

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

Preview Lab → · Contrast checker → · Palette generator →

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