#AFA238#AFA238

#AFA238 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.125 H 102.3°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#AFA238
RGBrgb(175, 162, 56)
HSLhsl(53, 52%, 45%)
HSVhsv(53, 68%, 69%)
CMYKcmyk(0%, 7.4%, 68%, 31.4%)
CIE-LABlab(65.94, -7.84, 54.49)
CIE-LCHlch(65.94, 55.05, 98.19°)
OKLaboklab(70.37% -0.0266 0.1224)
OKLCHoklch(70.37% 0.125 102.3)
XYZxyz(31.3146, 35.2414, 8.8934)
Luminance0.3524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA238 #3845AF
analogous
#AF6638 #AFA238 #81AF38
triadic
#AFA238 #38AFA2 #A238AF
tetradic
#AFA238 #38AF66 #3845AF #AF3881
square
#AFA238 #38AF66 #3845AF #AF3881
split-complementary
#AFA238 #3881AF #6638AF
monochromatic
#524C1A #817729 #AFA238 #CABE5A #D9D088

Accessibility & contrast

On white

2.61
#AFA238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#AFA238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA238
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA238#FFFFFF#000000##000000
##AFA2381.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D29
Deuteranopia (green-blind)
#B5A33E
Tritanopia (blue-blind)
#BC978C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa238;
/* rgb */ color: rgb(175, 162, 56);
/* oklch */ color: oklch(70.4% 0.125 102.3);
Tailwind
colors: {
  custom: {
    50: '#cabd75',
    500: '#afa238',
    950: '#000000',
  },
}
SCSS
$custom: #afa238;
$custom-light: #cabd75;
$custom-dark: #000000;
JSON
{
  "hex": "#afa238",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 53.445,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.70367,
    "c": 0.12524,
    "h": 102.3
  },
  "luminance": 0.3524
}

Semantic roles & 50–950 ramp

primary
#AFA238
secondary
#8087C3
accent
#5CDB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA238

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

Preview Lab → · Contrast checker → · Palette generator →

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