#879228#879228

#879228 is a light, vivid yellow. Relative luminance 0.259; OKLCH L 63.1% C 0.127 H 115.3°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#879228
RGBrgb(135, 146, 40)
HSLhsl(66, 57%, 36%)
HSVhsv(66, 73%, 57%)
CMYKcmyk(7.5%, 0%, 72.6%, 42.7%)
CIE-LABlab(57.91, -17.96, 51.70)
CIE-LCHlch(57.91, 54.73, 109.16°)
OKLaboklab(63.1% -0.0543 0.115)
OKLCHoklch(63.1% 0.127 115.3)
XYZxyz(20.6541, 25.8622, 5.9109)
Luminance0.2586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#879228 #332892
analogous
#926828 #879228 #529228
triadic
#879228 #288792 #922887
tetradic
#879228 #289268 #332892 #922852
square
#879228 #289268 #332892 #922852
split-complementary
#879228 #285292 #682892
monochromatic
#2E320E #5B621B #879228 #B3C235 #C8D461

Accessibility & contrast

On white

3.40
#879228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#879228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #879228
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##879228#FFFFFF#000000##000000
##8792281.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A15
Deuteranopia (green-blind)
#9C8C30
Tritanopia (blue-blind)
#90897D
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #879228;
/* rgb */ color: rgb(135, 146, 40);
/* oklch */ color: oklch(63.1% 0.127 115.3);
Tailwind
colors: {
  custom: {
    50: '#adb16a',
    500: '#879228',
    950: '#000000',
  },
}
SCSS
$custom: #879228;
$custom-light: #adb16a;
$custom-dark: #000000;
JSON
{
  "hex": "#879228",
  "rgb": {
    "r": 135,
    "g": 146,
    "b": 40
  },
  "hsl": {
    "h": 66.226,
    "s": 56.989,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63096,
    "c": 0.12717,
    "h": 115.3
  },
  "luminance": 0.25862
}

Semantic roles & 50–950 ramp

primary
#879228
secondary
#665DB9
accent
#48E057
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #879228

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

Preview Lab → · Contrast checker → · Palette generator →

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