#AFA250#AFA250

#AFA250 is a light, moderate yellow. Relative luminance 0.355; OKLCH L 70.6% C 0.105 H 100.4°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#AFA250
RGBrgb(175, 162, 80)
HSLhsl(52, 37%, 50%)
HSVhsv(52, 54%, 69%)
CMYKcmyk(0%, 7.4%, 54.3%, 31.4%)
CIE-LABlab(66.16, -6.14, 43.79)
CIE-LCHlch(66.16, 44.22, 97.98°)
OKLaboklab(70.62% -0.0189 0.1028)
OKLCHoklch(70.62% 0.105 100.4)
XYZxyz(32.0485, 35.5350, 12.7586)
Luminance0.3553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA250 #505DAF
analogous
#AF7250 #AFA250 #8DAF50
triadic
#AFA250 #50AFA2 #A250AF
tetradic
#AFA250 #50AF72 #505DAF #AF508D
square
#AFA250 #50AF72 #505DAF #AF508D
split-complementary
#AFA250 #508DAF #7250AF
monochromatic
#5B542A #857B3D #AFA250 #C2B87A #D5CFA4

Accessibility & contrast

On white

2.59
#AFA250 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#AFA250 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA250
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA250#FFFFFF#000000##000000
##AFA2501.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9E48
Deuteranopia (green-blind)
#B3A354
Tritanopia (blue-blind)
#BB988F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa250;
/* rgb */ color: rgb(175, 162, 80);
/* oklch */ color: oklch(70.6% 0.105 100.4);
Tailwind
colors: {
  custom: {
    50: '#c9bd83',
    500: '#afa250',
    950: '#000000',
  },
}
SCSS
$custom: #afa250;
$custom-light: #c9bd83;
$custom-dark: #000000;
JSON
{
  "hex": "#afa250",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 80
  },
  "hsl": {
    "h": 51.789,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.7062,
    "c": 0.10457,
    "h": 100.4
  },
  "luminance": 0.35534
}

Semantic roles & 50–950 ramp

primary
#AFA250
secondary
#989EC3
accent
#6ACD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA250

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

Preview Lab → · Contrast checker → · Palette generator →

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