#AFA235#AFA235

#AFA235 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.3% C 0.127 H 102.4°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#AFA235
RGBrgb(175, 162, 53)
HSLhsl(54, 54%, 45%)
HSVhsv(54, 70%, 69%)
CMYKcmyk(0%, 7.4%, 69.7%, 31.4%)
CIE-LABlab(65.91, -8.01, 55.69)
CIE-LCHlch(65.91, 56.26, 98.18°)
OKLaboklab(70.34% -0.0274 0.1244)
OKLCHoklch(70.34% 0.127 102.4)
XYZxyz(31.2435, 35.2130, 8.5185)
Luminance0.3521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA235 #3542AF
analogous
#AF6535 #AFA235 #7FAF35
triadic
#AFA235 #35AFA2 #A235AF
tetradic
#AFA235 #35AF65 #3542AF #AF357F
square
#AFA235 #35AF65 #3542AF #AF357F
split-complementary
#AFA235 #357FAF #6535AF
monochromatic
#514B19 #807727 #AFA235 #CCBF56 #DAD185

Accessibility & contrast

On white

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

On black

8.04
#AFA235 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA235
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA235#FFFFFF#000000##000000
##AFA2351.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa235;
/* rgb */ color: rgb(175, 162, 53);
/* oklch */ color: oklch(70.3% 0.127 102.4);
Tailwind
colors: {
  custom: {
    50: '#cabd73',
    500: '#afa235',
    950: '#000000',
  },
}
SCSS
$custom: #afa235;
$custom-light: #cabd73;
$custom-dark: #000000;
JSON
{
  "hex": "#afa235",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 53
  },
  "hsl": {
    "h": 53.607,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.70342,
    "c": 0.12738,
    "h": 102.4
  },
  "luminance": 0.35212
}

Semantic roles & 50–950 ramp

primary
#AFA235
secondary
#7C84C4
accent
#5ADD4B
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA235

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

Preview Lab → · Contrast checker → · Palette generator →

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