#798815#798815

#798815 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.4% C 0.131 H 117.4°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#798815
RGBrgb(121, 136, 21)
HSLhsl(68, 73%, 31%)
HSVhsv(68, 85%, 53%)
CMYKcmyk(11%, 0%, 84.6%, 46.7%)
CIE-LABlab(53.74, -19.85, 53.66)
CIE-LCHlch(53.74, 57.21, 110.30°)
OKLaboklab(59.44% -0.0603 0.1162)
OKLCHoklch(59.44% 0.131 117.4)
XYZxyz(16.8251, 21.7276, 4.0168)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798815 #241588
analogous
#885D15 #798815 #3F8815
triadic
#798815 #157988 #881579
tetradic
#798815 #15885D #241588 #88153F
square
#798815 #15885D #241588 #88153F
split-complementary
#798815 #153F88 #5D1588
monochromatic
#1B1E05 #4A530D #798815 #A8BD1D #CAE037

Accessibility & contrast

On white

3.93
#798815 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#798815 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798815
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798815#FFFFFF#000000##000000
##7988151.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#908121
Tritanopia (blue-blind)
#818074
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798815;
/* rgb */ color: rgb(121, 136, 21);
/* oklch */ color: oklch(59.4% 0.131 117.4);
Tailwind
colors: {
  custom: {
    50: '#a3aa5f',
    500: '#798815',
    950: '#000000',
  },
}
SCSS
$custom: #798815;
$custom-light: #a3aa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#798815",
  "rgb": {
    "r": 121,
    "g": 136,
    "b": 21
  },
  "hsl": {
    "h": 67.826,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59441,
    "c": 0.13094,
    "h": 117.4
  },
  "luminance": 0.21727
}

Semantic roles & 50–950 ramp

primary
#798815
secondary
#4D3DBC
accent
#38F050
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #798815

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

Preview Lab → · Contrast checker → · Palette generator →

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