#A8B228#A8B228

#A8B228 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.2% C 0.152 H 113.9°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#A8B228
RGBrgb(168, 178, 40)
HSLhsl(64, 63%, 43%)
HSVhsv(64, 78%, 70%)
CMYKcmyk(5.6%, 0%, 77.5%, 30.2%)
CIE-LABlab(69.70, -19.91, 63.71)
CIE-LCHlch(69.70, 66.75, 107.36°)
OKLaboklab(73.19% -0.0616 0.1393)
OKLCHoklch(73.19% 0.152 113.9)
XYZxyz(32.4529, 40.3195, 8.0800)
Luminance0.4032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B228 #3228B2
analogous
#B27728 #A8B228 #63B228
triadic
#A8B228 #28A8B2 #B228A8
tetradic
#A8B228 #28B277 #3228B2 #B22863
square
#A8B228 #28B277 #3228B2 #B22863
split-complementary
#A8B228 #2863B2 #7728B2
monochromatic
#4A4E12 #79801D #A8B228 #CAD543 #D8E075

Accessibility & contrast

On white

2.32
#A8B228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#A8B228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B228
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B228#FFFFFF#000000##000000
##A8B2281.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA900
Deuteranopia (green-blind)
#BFAC35
Tritanopia (blue-blind)
#B4A798
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a8b228;
/* rgb */ color: rgb(168, 178, 40);
/* oklch */ color: oklch(73.2% 0.152 113.9);
Tailwind
colors: {
  custom: {
    50: '#c6c86e',
    500: '#a8b228',
    950: '#000000',
  },
}
SCSS
$custom: #a8b228;
$custom-light: #c6c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b228",
  "rgb": {
    "r": 168,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 64.348,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.73195,
    "c": 0.15227,
    "h": 113.9
  },
  "luminance": 0.40319
}

Semantic roles & 50–950 ramp

primary
#A8B228
secondary
#756FC7
accent
#41E64D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8B228

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

Preview Lab → · Contrast checker → · Palette generator →

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