#AFC235#AFC235

#AFC235 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 77.4% C 0.160 H 117.1°. Best body text is #000000 at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#AFC235
RGBrgb(175, 194, 53)
HSLhsl(68, 57%, 48%)
HSVhsv(68, 73%, 76%)
CMYKcmyk(9.8%, 0%, 72.7%, 23.9%)
CIE-LABlab(74.80, -24.27, 64.42)
CIE-LCHlch(74.80, 68.84, 110.65°)
OKLaboklab(77.44% -0.0729 0.1428)
OKLCHoklch(77.44% 0.16 117.1)
XYZxyz(37.6145, 47.9550, 10.6422)
Luminance0.4795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC235 #4835C2
analogous
#C28E35 #AFC235 #68C235
triadic
#AFC235 #35AFC2 #C235AF
tetradic
#AFC235 #35C28E #4835C2 #C23568
square
#AFC235 #35C28E #4835C2 #C23568
split-complementary
#AFC235 #3568C2 #8E35C2
monochromatic
#58621B #849228 #AFC235 #C4D460 #D6E191

Accessibility & contrast

On white

1.98
#AFC235 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.59
#AFC235 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC235
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC235#FFFFFF#000000##000000
##AFC2351.001.9810.5910.59
#FFFFFF1.981.0021.0021.00
#00000010.5921.001.001.00
##00000010.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB819
Deuteranopia (green-blind)
#CDB941
Tritanopia (blue-blind)
#BAB7A7
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc235;
/* rgb */ color: rgb(175, 194, 53);
/* oklch */ color: oklch(77.4% 0.160 117.1);
Tailwind
colors: {
  custom: {
    50: '#cad476',
    500: '#afc235',
    950: '#000000',
  },
}
SCSS
$custom: #afc235;
$custom-light: #cad476;
$custom-dark: #000000;
JSON
{
  "hex": "#afc235",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 53
  },
  "hsl": {
    "h": 68.085,
    "s": 57.085,
    "l": 48.431
  },
  "oklch": {
    "l": 0.77442,
    "c": 0.16035,
    "h": 117.1
  },
  "luminance": 0.47955
}

Semantic roles & 50–950 ramp

primary
#AFC235
secondary
#9087CC
accent
#47E05C
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC235

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

Preview Lab → · Contrast checker → · Palette generator →

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