#798228#798228

#798228 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.1% C 0.113 H 114.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#798228
RGBrgb(121, 130, 40)
HSLhsl(66, 53%, 33%)
HSVhsv(66, 69%, 51%)
CMYKcmyk(6.9%, 0%, 69.2%, 49%)
CIE-LABlab(52.04, -15.78, 45.48)
CIE-LCHlch(52.04, 48.14, 109.14°)
OKLaboklab(58.12% -0.0474 0.1023)
OKLCHoklch(58.12% 0.113 114.9)
XYZxyz(16.2512, 20.1837, 5.0468)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798228 #312882
analogous
#825E28 #798228 #4C8228
triadic
#798228 #287982 #822879
tetradic
#798228 #28825E #312882 #82284C
square
#798228 #28825E #312882 #82284C
split-complementary
#798228 #284C82 #5E2882
monochromatic
#22240B #4D531A #798228 #A5B136 #C0CC59

Accessibility & contrast

On white

4.17
#798228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#798228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798228
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798228#FFFFFF#000000##000000
##7982281.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1B
Deuteranopia (green-blind)
#8B7D2F
Tritanopia (blue-blind)
#817A70
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798228;
/* rgb */ color: rgb(121, 130, 40);
/* oklch */ color: oklch(58.1% 0.113 114.9);
Tailwind
colors: {
  custom: {
    50: '#a2a668',
    500: '#798228',
    950: '#000000',
  },
}
SCSS
$custom: #798228;
$custom-light: #a2a668;
$custom-dark: #000000;
JSON
{
  "hex": "#798228",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 66,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58116,
    "c": 0.11276,
    "h": 114.9
  },
  "luminance": 0.20183
}

Semantic roles & 50–950 ramp

primary
#798228
secondary
#5E55B1
accent
#4BDC5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798228

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

Preview Lab → · Contrast checker → · Palette generator →

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