#AFB335#AFB335

#AFB335 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.1% C 0.144 H 111.2°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#AFB335
RGBrgb(175, 179, 53)
HSLhsl(62, 54%, 45%)
HSVhsv(62, 70%, 70%)
CMYKcmyk(2.2%, 0%, 70.4%, 29.8%)
CIE-LABlab(70.60, -16.82, 60.35)
CIE-LCHlch(70.60, 62.64, 105.57°)
OKLaboklab(74.08% -0.0522 0.1342)
OKLCHoklch(74.08% 0.144 111.2)
XYZxyz(34.4430, 41.6121, 9.5850)
Luminance0.4161 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB335 #3935B3
analogous
#B37835 #AFB335 #70B335
triadic
#AFB335 #35AFB3 #B335AF
tetradic
#AFB335 #35B378 #3935B3 #B33570
square
#AFB335 #35B378 #3935B3 #B33570
split-complementary
#AFB335 #3570B3 #7835B3
monochromatic
#535519 #818427 #AFB335 #CACD58 #D9DB87

Accessibility & contrast

On white

2.25
#AFB335 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#AFB335 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB335
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB335#FFFFFF#000000##000000
##AFB3351.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB20
Deuteranopia (green-blind)
#C2AE3E
Tritanopia (blue-blind)
#BBA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb335;
/* rgb */ color: rgb(175, 179, 53);
/* oklch */ color: oklch(74.1% 0.144 111.2);
Tailwind
colors: {
  custom: {
    50: '#cac975',
    500: '#afb335',
    950: '#000000',
  },
}
SCSS
$custom: #afb335;
$custom-light: #cac975;
$custom-dark: #000000;
JSON
{
  "hex": "#afb335",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 53
  },
  "hsl": {
    "h": 61.905,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.7408,
    "c": 0.144,
    "h": 111.2
  },
  "luminance": 0.41611
}

Semantic roles & 50–950 ramp

primary
#AFB335
secondary
#817FC5
accent
#4ADE4F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB335

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

Preview Lab → · Contrast checker → · Palette generator →

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