#798226#798226

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

Color values

HEX#798226
RGBrgb(121, 130, 38)
HSLhsl(66, 55%, 33%)
HSVhsv(66, 71%, 51%)
CMYKcmyk(6.9%, 0%, 70.8%, 49%)
CIE-LABlab(52.03, -15.90, 46.29)
CIE-LCHlch(52.03, 48.94, 108.96°)
OKLaboklab(58.1% -0.048 0.1037)
OKLCHoklch(58.1% 0.114 114.8)
XYZxyz(16.2181, 20.1704, 4.8723)
Luminance0.2017 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798226 #2F2682
analogous
#825D26 #798226 #4B8226
triadic
#798226 #267982 #822679
tetradic
#798226 #26825D #2F2682 #82264B
square
#798226 #26825D #2F2682 #82264B
split-complementary
#798226 #264B82 #5D2682
monochromatic
#21230A #4D5318 #798226 #A5B134 #C2CD55

Accessibility & contrast

On white

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

On black

5.03
#798226 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798226
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798226#FFFFFF#000000##000000
##7982261.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798226;
/* rgb */ color: rgb(121, 130, 38);
/* oklch */ color: oklch(58.1% 0.114 114.8);
Tailwind
colors: {
  custom: {
    50: '#a2a666',
    500: '#798226',
    950: '#000000',
  },
}
SCSS
$custom: #798226;
$custom-light: #a2a666;
$custom-dark: #000000;
JSON
{
  "hex": "#798226",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 38
  },
  "hsl": {
    "h": 65.87,
    "s": 54.762,
    "l": 32.941
  },
  "oklch": {
    "l": 0.581,
    "c": 0.11423,
    "h": 114.8
  },
  "luminance": 0.2017
}

Semantic roles & 50–950 ramp

primary
#798226
secondary
#5B52B2
accent
#4ADE58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798226

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

Preview Lab → · Contrast checker → · Palette generator →

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