#A2B238#A2B238

#A2B238 is a light, vivid yellow. Relative luminance 0.398; OKLCH L 72.8% C 0.145 H 116.6°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#A2B238
RGBrgb(162, 178, 56)
HSLhsl(68, 52%, 46%)
HSVhsv(68, 69%, 70%)
CMYKcmyk(9%, 0%, 68.5%, 30.2%)
CIE-LABlab(69.33, -21.67, 57.61)
CIE-LCHlch(69.33, 61.55, 110.61°)
OKLaboklab(72.82% -0.0647 0.1293)
OKLCHoklch(72.82% 0.145 116.6)
XYZxyz(31.5352, 39.8081, 9.7631)
Luminance0.3981 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B238 #4838B2
analogous
#B28538 #A2B238 #65B238
triadic
#A2B238 #38A2B2 #B238A2
tetradic
#A2B238 #38B285 #4838B2 #B23865
square
#A2B238 #38B285 #4838B2 #B23865
split-complementary
#A2B238 #3865B2 #8538B2
monochromatic
#4D551B #788329 #A2B238 #BDCC5C #D0DA8A

Accessibility & contrast

On white

2.34
#A2B238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.96
#A2B238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B238
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B238#FFFFFF#000000##000000
##A2B2381.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA925
Deuteranopia (green-blind)
#BDAA41
Tritanopia (blue-blind)
#ACA89A
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a2b238;
/* rgb */ color: rgb(162, 178, 56);
/* oklch */ color: oklch(72.8% 0.145 116.6);
Tailwind
colors: {
  custom: {
    50: '#c1c876',
    500: '#a2b238',
    950: '#000000',
  },
}
SCSS
$custom: #a2b238;
$custom-light: #c1c876;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b238",
  "rgb": {
    "r": 162,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 67.869,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.72819,
    "c": 0.14461,
    "h": 116.6
  },
  "luminance": 0.39808
}

Semantic roles & 50–950 ramp

primary
#A2B238
secondary
#8A81C5
accent
#4CDC5F
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A2B238

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

Preview Lab → · Contrast checker → · Palette generator →

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